void Awake()
 {
     m_ratControler = GetComponent <RatControler>();
     m_ratCamera    = GetComponentInChildren <RatCamera>();
     m_cam          = GetComponentInChildren <Camera>();
     Enable(false);
 }
Exemplo n.º 2
0
 public void Init(Transform character, Transform camera)
 {
     m_CharacterTargetRot = character.localRotation;
     m_CameraTargetRot    = camera.localRotation;
     controller           = GetComponent <RatControler>();
 }