// Use this for initialization void Start() { Physics2D.queriesStartInColliders = false; cooldown_time = start_cooldown_time; the_fireball_enemy = gameObject.GetComponent <FireBallEnemy>(); }
//public float start_knock_back_time; //private float knock_back_time; //public float knock_back_thrust; //public bool knockback; // Use this for initialization void Start() { enemy_current_health = enemy_max_health; if (is_fireball_enemy) { the_fireball_enemy = GetComponent <FireBallEnemy>(); } else { the_enemy = gameObject.GetComponent <EnemyController>(); } the_sfx_manager = FindObjectOfType <SFXManager>(); }
public void SetFireBallEnemy(FireBallEnemy the_fireball_enemy) { enemy_direction = the_fireball_enemy.last_move; }