示例#1
0
    // Use this for initialization
    void Start()
    {
        pad            = new GamePad(playerNumber);
        parent         = new Player(playerNumber);
        parent.gamepad = pad;
        parent.team    = new Team((TEAMCODE)playerNumber);

        sprite.color = new Color(1F, 1F, 1F, 0.7F);

        state = new NotJoinState(this, pad);
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        pad = new GamePad(playerNumber);
        parent = new Player(playerNumber);
        parent.gamepad = pad;
        parent.team = new Team((TEAMCODE)playerNumber);

        sprite.color = new Color(1F, 1F, 1F, 0.7F);

        state = new NotJoinState(this, pad);
    }