public void Awake() { _playerInfoBlackBoard = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>(); _animatorComponent = GetComponent <Animator>(); _moveAndRotationComponent = GetComponent <AIPlayerMoveAndRotation>(); _palyerBattleUnitComponent = GetComponent <AIBattleUnit>(); }
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); }
protected override void actionAwake() { _playerInfoBlackBoard = SceneBlackBoard.getInstance().getBlackBoard <PlayerInfoBlackBoard>(); _playerUnitManagerComponent = _playerInfoBlackBoard.getCurrleadGo().GetComponent <PlayerUnitManager>(); }
public void Awake() { _playerInfoBlackBoard = SceneBlackBoard.getInstance().addBlackBoard <PlayerInfoBlackBoard>(); }