예제 #1
0
 new void Start()
 {
     Signals.AddListeners(OnSignal, new List <ESignalType> {
         ESignalType.PieceSelected
     });
     base.Start();
 }
예제 #2
0
 new void Start()
 {
     base.Start();
     Signals.AddListeners(OnPlayerChange, new List <ESignalType>()
     {
         ESignalType.PlayerWin
     });
 }
예제 #3
0
 new void Start()
 {
     base.Start();
     Signals.AddListeners(OnBoardSelect, new List <ESignalType>()
     {
         ESignalType.GameStart, ESignalType.SelectBoard, ESignalType.PlayerWin
     });
 }
예제 #4
0
    // Use this for initialization
    new void Start()
    {
        base.Start();

        Signals.AddListeners(OnBoardSelect, new List <ESignalType>()
        {
            ESignalType.StartPuzzle
        });
    }
예제 #5
0
파일: Cam.cs 프로젝트: 03knoppg/Hextwist
    // Use this for initialization
    void Start()
    {
        cam = GetComponent <Camera>();

        Signals.AddListeners(OnCamPosition, new List <ESignalType>()
        {
            ESignalType.CamPosition
        });
    }
예제 #6
0
    protected new void Start()
    {
        base.Start();

        if (Progression.Puzzles[levelIndex].Unlocked)
        {
            State = UIStates.State.Active;
        }
        else
        {
            State = UIStates.State.Disabled;
        }

        Signals.AddListeners(OnSignalOne, new List <ESignalType>()
        {
            ESignalType.PuzzleComplete
        });
    }
예제 #7
0
    public static void Init(Animator animator)
    {
        PvPGamePrefab = Resources.Load <Game>("Prefabs/Games/PvP/PvPGame");

        List <Game> PuzzlePrefabs = new List <Game>(Resources.LoadAll <Game>("Prefabs/Games/Puzzle"));

        PuzzlePrefabs.Sort(delegate(Game a, Game b)
        {
            return(a.order.CompareTo(b.order));
        });

        Puzzles             = PuzzlePrefabs;
        Puzzles[0].Unlocked = true;

        Signals.AddListeners(OnSignal, new List <ESignalType>()
        {
            ESignalType.PuzzleComplete
        });
    }
 protected void AddListenersTwo(List <ESignalType> signalTypes)
 {
     SignalTypesTwo = signalTypes;
     Signals.AddListeners(OnSignalTwo, signalTypes);
 }
 protected void AddListenersOne(List <ESignalType> signalTypes)
 {
     SignalTypesOne = signalTypes;
     Signals.AddListeners(OnSignalOne, signalTypes);
 }
 protected void AddListeners(List <ESignalType> signalTypes)
 {
     SignalTypes = signalTypes;
     Signals.AddListeners(OnSignal, signalTypes);
 }
예제 #11
0
 void Start()
 {
     UISignals = gameObject.GetComponent<Signals>();
     UISignals.AddListeners(OnSignal, new List<Signal>() {
         Signal.PuzzleComplete });
 }
예제 #12
0
파일: Game.cs 프로젝트: 03knoppg/Hextris
    void Start()
    {
        Layout.defaultLayout = new Layout(Layout.pointy, new Point(layoutSize, layoutSize), new Point(0, 0));

        Signals = FindObjectOfType<Signals>();
        UIState = FindObjectOfType<UIStates>();

        Signals.AddListeners(OnUISignal, new List<Signal>() {
            Signal.RotateCCW,
            Signal.RotateUndo,
            Signal.RotateCW,
            Signal.EndTurn});

        players = new List<Player>();
        for (int i = 0; i < numPlayers; i++)
        {
            Player p = new Player();
            players.Add(p);
            p.Name = "Player" + i;
        }

        StartGame();
    }