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());
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        scoreBoardManager = ScoreBoardManager.GetInstance();

        playerResponseManager = PlayerResponseManager.GetInstance();
        score = scoreBoardManager.getScore();
    }
Exemplo n.º 3
0
        public Player(string nickname)
        {
            Nickname = nickname;

            EventManager    = new PlayerEventManager(this);
            RequestManager  = new PlayerRequestManager(this);
            ResponseManager = new PlayerResponseManager(this);
        }
Exemplo n.º 4
0
        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();
 }