Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     Timer    = 6.0f;
     Player   = GameObject.Find("Player");
     SE       = Player.GetComponent <Statuseffect>();
     Enemy    = GameObject.Find("Enemy");
     AIMelee  = Enemy.GetComponent <EnemyAIMelee>();
     AIRanged = Enemy.GetComponent <EnemyAIRanged>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     Camera   = GameObject.Find("Main Camera");
     rb       = GetComponent <Rigidbody2D>();
     SE       = GetComponent <Statuseffect>();
     Enemy    = GameObject.Find("Enemy");
     AIMelee  = Enemy.GetComponent <EnemyAIMelee>();
     GM       = Camera.GetComponent <GameManagement>();
     AIRanged = Enemy.GetComponent <EnemyAIRanged>();
     if (GameManagement.warrior == true)
     {
         Health = 15;
     }
 }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     AIMelee  = gameObject.GetComponent <EnemyAIMelee>();
     AIRanged = gameObject.GetComponent <EnemyAIRanged>();
     PS       = gameObject.GetComponent <ProjectileSpawner>();
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     AIMelee  = GetComponent <EnemyAIMelee>();
     AIRanged = GetComponent <EnemyAIRanged>();
     tr       = GetComponent <Transform>();
 }