示例#1
0
    // Use this for initialization
    void Start()
    {
        hasGun = GameObject.FindGameObjectWithTag("Player");

        if (hasGun != null)
        {
            shooter = hasGun.GetComponent <Gunfire>();
        }



        enemyHealth = 100;
        Debug.Log("Enemy Health Set");
    }
示例#2
0
 void Start()
 {
     GunComponent = GetComponent <Gunfire>();
 }
 // Use this for initialization
 void Start()
 {
     ThisGunfire       = GetComponent <Gunfire> ();
     HandgunReloadAnim = GetComponent <Animation> ();
     Wf1d1s            = new WaitForSeconds(1.1f);
 }
示例#4
0
 void ShootingAnimation()
 {
     gFire = GameObject.FindGameObjectWithTag("Gun").GetComponent <Gunfire>();
     gFire.Shooting();
 }