Пример #1
0
 public void Awake()
 {
     _playerInfoBlackBoard      = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();
     _animatorComponent         = GetComponent <Animator>();
     _moveAndRotationComponent  = GetComponent <AIPlayerMoveAndRotation>();
     _palyerBattleUnitComponent = GetComponent <AIBattleUnit>();
 }
        public override Status Update()
        {
            if (!isAwake)
            {
                playerInfoBB = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();

                actionAwake();
                actionStart();
                isAwake = true;
            }
            else
            {
                actionStart();
            }

            return(Status.Success);
        }
Пример #3
0
 protected override void actionAwake()
 {
     _playerInfoBlackBoard       = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();
     _playerUnitManagerComponent = _playerInfoBlackBoard.getCurrleadGo().GetComponent <PlayerUnitManager>();
 }
Пример #4
0
 public void Awake()
 {
     _playerInfoBlackBoard = SceneBlackBoard.getInstance().addBlackBoard <PlayerInfoBlackBoard>();
 }