Ejemplo n.º 1
0
 //Get all necesary components
 private void Start()
 {
     moveAble       = gameObject.GetComponent <PlayerMovement>();
     inputManager   = GetComponent <PlayerInputManager>();
     playerLives    = gameObject.GetComponent <PlayerLives>();
     playerShooting = gameObject.GetComponent <PlayerShooting>();
     updateHearts   = gameObject.GetComponent <UpdateHearts>();
 }
Ejemplo n.º 2
0
 //gets component
 private void Start()
 {
     updateHearts = GetComponent <UpdateHearts>();
 }