Exemple #1
0
 private void FixedUpdate()
 {
     if (reactorToPoint == null)
     {
         Destroy(gameObject);
     }
     else
     {
         transform.rotation = Quaternion.Euler(new Vector3(0, 0, AimScript.GetAngleToAim(reactorToPoint.position, transform.position, -90)));
     }
 }
Exemple #2
0
 private void FixedUpdate()
 {
     transform.rotation = Quaternion.Euler(new Vector3(0, 0, AimScript.GetAngleToAim(mousePos, transform.position, -90)));
 }