protected BaseGameBehaviour()
 {
     this.iPlayerTurn       = 1;
     this.iCurrentRound     = 1;
     this.allRoundsComplete = false;
     this.players           = new List <PLAYER>();
     this.previousBalls     = new List <CBall>(50);
     this.tee               = GameObject.FindGameObjectWithTag("Tee");
     this.pin               = GameObject.FindGameObjectWithTag("Pin");
     this.uiDialsHUD        = CGameManager.instance.UiHolder.UiDialsParent;
     this.golfCameraManager = CGameManager.instance.UiHolder.GolfCamera;
     //this._gameExitPanel = CGameManager.instance.UiHolder.GameExitPanel;
     //this.uiPillPanel = CGameManager.instance.UiHolder.PrePostPill;
     //this.clubPopUpManager = CGameManager.instance.UiHolder.ClubPopUpManager;
     this.uiClubSelect = this.clubPopUpManager.gameObject;
     //this.numericDisplays = CGameManager.instance.UiHolder.NumericDisplays;
     //this.numericDisplayStatic = CGameManager.instance.UiHolder.NumericDisplaysStatic;
     //this.numericDisplays.SetPanels();
     this.tracerManager = CGameManager.instance.UiHolder.TracerManager;
     this.gameSettings  = CGameManager.instance.UiHolder.GameSettings;
     //this.panelFade = CGameManager.instance.UiHolder.PanelFade;
     this.ktWatchBall         = new CKitchenTimer(2f);
     this.ktWatchWinnerScreen = new CKitchenTimer(2f);
     this.KTWatchNextUp       = new CKitchenTimer(2f);
     this._isShutdown         = false;
 }
示例#2
0
 private void Start()
 {
     this._shutdownComplete = false;
     this.gameState         = CGameManager.GAMESTATE.INITIALIZE;
     this.gameSubState      = CGameManager.GAME_SUBSTATE.PREP_TEE;
     this.SceneTimer        = new CKitchenTimer(2f);
     //NextPlayerPopUp.Create();
 }
示例#3
0
 public DELEGATE_OBJECT(int intervalInSeconds)
 {
     this.intervalSeconds = intervalInSeconds;
     this.timer           = new CKitchenTimer((float)this.intervalSeconds);
 }