Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     player           = GameObject.FindGameObjectWithTag("Player");
     aIEnemyControl   = GetComponent <AIEnemyControl>();
     thirdPersonEnemy = GetComponent <ThirdPersonEnemy>();
     m_Animator       = GetComponent <Animator>();
     attackSFX        = this.GetComponent <AudioSource>();
     projectileToUse.SetActive(true);
     tp = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
     gm = GameObject.FindGameObjectWithTag("gamemanager").GetComponent <gamemanager>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     player              = GameObject.FindGameObjectWithTag("Player");
     aIEnemyControl      = GetComponent <AIEnemyControl>();
     thirdPersonEnemy    = GetComponent <ThirdPersonEnemy>();
     m_Animator          = GetComponent <Animator>();
     attackSFX           = GetComponent <AudioSource>();
     FistCol             = fistComponent;
     ArmCol              = armComponent;//GameObject.FindGameObjectWithTag("Fist");
     currentHealthPoints = maxHealthPoints;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     anim    = GetComponent <Animator>();
     aiEnemy = GetComponent <AIEnemyControl>();
 }