Ejemplo n.º 1
0
 private void Start()
 {
     gameController = GameObject.FindGameObjectWithTag("GameController");
     inventory      = gameController.GetComponent <PlayerInventory>();
     ps             = GetComponent <CharacterStats>();
     database       = gameController.GetComponent <HealthPackDatabase>();
     anim           = GetComponentInChildren <Animator>();
     source         = GetComponent <AudioSource>();
 }
Ejemplo n.º 2
0
 private void Start()
 {
     gameController     = GameObject.FindGameObjectWithTag("GameController");
     database           = gameController.GetComponent <WeaponDatabase>();
     healthPackDatabase = gameController.GetComponent <HealthPackDatabase>();
     inventory          = gameController.GetComponent <PlayerInventory>();
     pickupLayerMask    = LayerMask.GetMask("PickUp");
     source             = GetComponent <AudioSource>();
 }