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