Пример #1
0
 private void Awake()
 {
     playerInput                = GetComponent <PlayerInput>();
     playerMovement             = GetComponent <PlayerMovement>();
     playerShoot                = GetComponent <PlayerShoot>();
     playerProjectileController = GetComponent <PlayerProjectileController>();
     playerImmunity             = GetComponent <PlayerImmunity>();
     playerLoot = GetComponent <PlayerLoot>();
     animator   = GetComponent <Animator>();
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     projectileController = GetComponentInParent <PlayerProjectileController> ();
 }