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