// Use this for initialization
 void Start()
 {
     m_health = GetComponent <PlayerHealth>();
     m_shoot  = GetComponent <PlayerAttack>();
     m_motor  = GetComponent <PlayerMotorOld>();
     m_setup  = GetComponent <PlayerSetup>();
 }
Exemplo n.º 2
0
    void Awake()
    {
        vRoom = transform;

        player                 = GameObject.FindGameObjectWithTag("Player").transform;
        playerMotorScript      = player.GetComponent <PlayerMotorOld>();
        playerControllerScript = player.GetComponent <PlayerControllerOld>();
    }