示例#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>();
 }