Пример #1
0
    public void createChatter()
    {
        bool tank_shoot_status = true;

        tank_shoot_status = level_controller.GetComponent <LevelController>().getTankShootStatus();

        if (start_time < Time.time && marble_score.getMarbleCount() >= 5 && tank_shoot_status)
        {
            Instantiate(chatter, instantiateposition.transform.position, chatter.transform.rotation);
            start_time = Time.time + time_interval;
            loading_image.fillAmount = 0f;
            marble_score.add_to_marble_count(-5);
        }
    }
Пример #2
0
    public void createPan()
    {
        bool tank_shoot_status = true;

        tank_shoot_status = level_controller.GetComponent <LevelController>().getTankShootStatus();

        if (start_time < Time.time && marble_score.getMarbleCount() >= 5 && tank_shoot_status)
        {
            generatepan = true;
            start_time  = Time.time + time_interval;
            loading_image.fillAmount = 0f;
            marble_score.add_to_marble_count(-5);
        }
    }