示例#1
0
    //MonoBehaviour callbacks
    private void Awake()
    {
        //AI structure
        mainSequence = new Sequence();

        //Actions
        _moveAction             = GetComponentInChildren <MoveAction>();
        _getNextPathPointAction = GetComponentInChildren <GetNextPathPointAction>();
    }
示例#2
0
    //MonoBehaviour callbacks
    private void Awake()
    {
        //AI structure
        mainSequence = new Sequence();

        //Actions
        _moveAction             = GetComponentInChildren <MoveAction>();
        _getNextPathPointAction = GetComponentInChildren <GetNextPathPointAction>();

        //Checks
        _safeDistanceCheck = GetComponentInChildren <SafeDistanceCheck>();
        _waintingCheck     = GetComponentInChildren <WaintingCheck>();
    }