Exemplo n.º 1
0
 void LateUpdate()
 {
     Control();
     Move();
     mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
     onUnitLook.RotationUpdate(mousePos);
     RotationControl();
 }
Exemplo n.º 2
0
 void LateUpdate()
 {
     Control();
     mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
     if (gameObject.GetComponent <Player>().attackType == AttackType.Shoot)
     {
         onUnitLook.RotationUpdate(mousePos);
     }
     RotationControl();
 }