Esempio n. 1
0
 void Start()
 {
     shootTimer = timeToShoot;
     dmg        = 1;
     player     = GameObject.FindWithTag("Player").GetComponent <Player_FPS>();
     Debug.Log("PlayerBombs: " + player.bombAmount);
 }
Esempio n. 2
0
 void Start()
 {
     setUp();
     //loadData();
     player = GameObject.FindWithTag("Player").GetComponent <Player_FPS>();
     if (player)
     {
         loadHelper();
     }
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     thisPlayer     = this;
     thisController = GetComponent <CharacterController>();
     animator       = GetComponent <Animator>();
 }