// 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>(); }
// 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; } }
// Start is called before the first frame update void Start() { AIMelee = gameObject.GetComponent <EnemyAIMelee>(); AIRanged = gameObject.GetComponent <EnemyAIRanged>(); PS = gameObject.GetComponent <ProjectileSpawner>(); }
// Start is called before the first frame update void Start() { AIMelee = GetComponent <EnemyAIMelee>(); AIRanged = GetComponent <EnemyAIRanged>(); tr = GetComponent <Transform>(); }