void Start() { shootTimer = timeToShoot; dmg = 1; player = GameObject.FindWithTag("Player").GetComponent <Player_FPS>(); Debug.Log("PlayerBombs: " + player.bombAmount); }
void Start() { setUp(); //loadData(); player = GameObject.FindWithTag("Player").GetComponent <Player_FPS>(); if (player) { loadHelper(); } }
public override void Hit() { base.Hit(); this.health--; Debug.Log("Auch!"); if (health <= 0) { Player_FPS player = GameObject.FindWithTag("Player").GetComponent <Player_FPS>(); player.exp += 100; Destroy(gameObject); } }
// Start is called before the first frame update void Start() { thisPlayer = this; thisController = GetComponent <CharacterController>(); animator = GetComponent <Animator>(); }