public void Awake()
 {
     _playerInfoBlackBoard      = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();
     _animatorComponent         = GetComponent <Animator>();
     _moveAndRotationComponent  = GetComponent <AIPlayerMoveAndRotation>();
     _palyerBattleUnitComponent = GetComponent <AIBattleUnit>();
 }
Beispiel #2
0
        public static SceneBlackBoard getInstance()
        {
            if (_instance == null)
            {
                _instance = new SceneBlackBoard();
            }

            return(_instance);
        }
        public override Status Update()
        {
            if (!isAwake)
            {
                playerInfoBB = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();

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

            return(Status.Success);
        }
Beispiel #4
0
 protected override void actionAwake()
 {
     _playerInfoBlackBoard       = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>();
     _playerUnitManagerComponent = _playerInfoBlackBoard.getCurrleadGo().GetComponent <PlayerUnitManager>();
 }
Beispiel #5
0
 public void Awake()
 {
     _playerInfoBlackBoard = SceneBlackBoard.getInstance().addBlackBoard <PlayerInfoBlackBoard>();
 }