示例#1
0
    void CheckEnd()
    {
        if (fighter1.health == 0)
        {
            canFight        = false;
            fighter1.enable = false;
            fighter2.enable = false;
            bannnerCtrl.ShowYL();
            mainSource.Stop();
        }

        if (fighter2.health == 0)
        {
            canFight        = false;
            fighter1.enable = false;
            fighter2.enable = false;
            bannnerCtrl.ShowYW();
            mainSource.Stop();
        }
    }