Esempio n. 1
0
 protected override string OnInit()
 {
     if (cameraAim.value != null) {
         cameraAimAPI = cameraAim.value.GetComponent<CameraAim>();
     }
     targetRotation.value = agent.transform.rotation;
     return null;
 }
Esempio n. 2
0
 protected override string OnInit()
 {
     if (cameraAim.value != null)
     {
         cameraAimAPI = cameraAim.value.GetComponent <CameraAim>();
     }
     targetRotation.value = agent.transform.rotation;
     return(null);
 }
Esempio n. 3
0
 void Awake()
 {
     m_motor = GetComponent <EntityMotor>();
     m_aim   = GetComponent <CameraAim>();
 }