Beispiel #1
0
    void Awake()
    {
        m_shootingControlScript = GetComponent <ShootingControl>();
        var playerObject = GameObject.FindGameObjectWithTag(Tags.Player);

        if (playerObject != null)
        {
            m_player = playerObject.transform;
        }
    }
Beispiel #2
0
 void Awake()
 {
     m_shootingControlScript = GetComponent <ShootingControl>();
 }
Beispiel #3
0
 void Awake()
 {
     shootControl   = GetComponent <ShootingControl>();
     gravityWalking = GetComponent <GravityWalking>();
     spiderWalking  = GetComponent <SpiderWalking>();
 }