Пример #1
0
        public static void Initialize(BoardController board, Type managerType)
        {
            ConstructorInfo[] ctors = managerType.GetConstructors();
            object[] args = new object[1];
            args[0] = board;

            sInstance = ctors[0].Invoke(args) as IAIManager;
        }
Пример #2
0
 public void Init(DominoGenerator generator, BoardController controller, GameObject dominoPrefab)
 {
     mAIBotLevel[0] = new LookAheadBotWithRandom(1,3);
     mAIBotLevel[1] = new LookAheadBot(1);
     mAIBotLevel[2] = new LookAheadBot(3);
     mDominoGenerator = generator;
     mFirstDominoSet = false;
     mFreeMove = false;
     mPlayer1Playing = false;
     mPickNewDomino = false;
     mGameOver = false;
     mBoardController = controller;
     mDominoPrefab = dominoPrefab;
 }
Пример #3
0
 public void Activity(float dt, BoardController boardController)
 {
     mStateMachine.Activity(dt);
 }
Пример #4
0
 public void Activity(float dt, BoardController boardController)
 {
     mStateMachine.Activity(dt);
 }