void Start() { scoreBoardManager = ScoreBoardManager.GetInstance(); scoreBoardManager.setScore(0); playerResponseManager = PlayerResponseManager.GetInstance(); playerResponseManager.UpdateSceneKeys(); playerResponseManager.attach(scoreBoardManager); initializeMenu(); initializeCommand(); initializeReceiver(); setReceiver(); setCommand(); transparentColor = new Color(1f, 1f, 1f, 0.5f); selectIndex = 0; prevIndex = selectIndex; InitializeText(); axisDirection = 0; axisDirectionPressed = 0; PlayerPrefs.SetInt("score", 0); TimeScript.timer = 100.0f; LifeScript.life = 3; HintManager hintManager = HintManager.GetInstance(); hintManager.TransitionTo(new HintNotUsed()); }
// Use this for initialization void Start() { scoreBoardManager = ScoreBoardManager.GetInstance(); playerResponseManager = PlayerResponseManager.GetInstance(); score = scoreBoardManager.getScore(); }
public Player(string nickname) { Nickname = nickname; EventManager = new PlayerEventManager(this); RequestManager = new PlayerRequestManager(this); ResponseManager = new PlayerResponseManager(this); }
public Player(int playerID, IPAddress lastConnectedIPAddress, string account, string nickname) { PlayerID = playerID; LastConnectedIPAddress = lastConnectedIPAddress; Account = account; Nickname = nickname; EventManager = new PlayerEventManager(this); OperationManager = new PlayerOperationManager(this); ResponseManager = new PlayerResponseManager(this); }
public static PlayerResponseManager GetInstance() { lock (obj) { if (playerResponseManager == null) { playerResponseManager = new PlayerResponseManager(); } } return(playerResponseManager); }
// Use this for initialization void Start() { playerResponseManager = PlayerResponseManager.GetInstance(); }