Esempio n. 1
0
    private void OnGoalEvent(bool isGoal, Area area)
    {
        StartCoroutine(
            FootballMain.LateExecution(1, Reset)
            );
        bool isMaxRound = this.footballMain.footballViewCtrl.UpdateScore((isGoal) ? 1 : 0, 1);


        if (isGoal && !isMaxRound)
        {
            AudioManager.instance.PlayAudio(this.gameObject, EventFlag.Audio.Hurrah, 1);
        }
    }
Esempio n. 2
0
    public void SetUp(FootballMain footballMain)
    {
        if (FootballCore == null)
        {
            return;
        }
        this.footballMain    = footballMain;
        recordBallFlightTime = 0;

        goalKeeperLevel = FootballCore.GetComponentInChildren <GoalKeeperLevel>();

        GoalDetermine.EventFinishShoot += OnGoalEvent;

        Reset();
    }
Esempio n. 3
0
 public void SetUp(FootballMain footballMain)
 {
     this.footballMain = footballMain;
 }