Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        m_player = GetComponentInChildren <RigidbodyFirstPersonController> ( );
        GetComponentInChildren <ShootingController> ( ).Init(m_player.GetComponentInChildren <Camera> ( ).transform);

        m_enemiesController = GetComponentInChildren <EnemiesController> ( );
        m_enemiesController.Init(m_player.transform);
    }
Esempio n. 2
0
 void Start()
 {
     theBaby         = GetComponent <NavMeshAgent>();
     mouselookscript = theParent.mouseLook;
     playercamera    = theParent.GetComponentInChildren <Camera>();
 }