Esempio n. 1
0
 void OnBoundsCollision(RaycastHit2D ray, GameObject self, GameObject other)
 {
     Dev.Where();
     Dev.CreateLineRenderer(transform.position, ray.point, Color.white, -2f, .2f);
     Dev.Log("" + ray.normal);
     if (ray.normal.x < 0f)
     {
         rightHit = true;
     }
     else
     if (ray.normal.x > 0f)
     {
         leftHit = true;
     }
     else//( Mathf.Abs( ray.normal.y ) > .9f )
     {
         topHit = true;
     }
 }