예제 #1
0
    // Use this for initialization
    void Start()
    {
        Physics2D.queriesStartInColliders = false;

        cooldown_time = start_cooldown_time;

        the_fireball_enemy = gameObject.GetComponent <FireBallEnemy>();
    }
예제 #2
0
    //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>();
    }
예제 #3
0
 public void SetFireBallEnemy(FireBallEnemy the_fireball_enemy)
 {
     enemy_direction = the_fireball_enemy.last_move;
 }