Technical Portfolio/General Website
View my GitHub profile
View my LinkedIn profile
View my HackerRank profile
View my HackThisSite profile
Scoutible Profile
Youtube music profile
Youtube General Favorites
by Jeanclyde Cruz
No rotation https://docs.unity3d.com/ScriptReference/Quaternion-identity.html
```C# Unity
bool IsPlayerEngaged() { bool outOfBoundsA=Input.mousePosition.x<=0||Input.mousePosition.y<=0; bool outOfBoundsB = Input.mousePosition.x >= Screen.width-2 || Input.mousePosition.y >= Screen.height-2; if(outOfBoundsA||outOfBoundsB){ return false; } return true; }
```
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { Destroy(gameObject); } }