예제 #1
0
        private void Awake()
        {
            turn  = GetComponent <TurnComponent>();
            actor = GetComponent <Actor>();

            upAction               = () => { actor.Up(); };
            rightAction            = () => { actor.Right(); };
            downAction             = () => { actor.Down(); };
            leftAction             = () => { actor.Left(); };
            currentTileAction      = () => { actor.InteractWithCurrentTile(); };
            consumeItemInBagAction = () => { actor.ConsumeItemInBag(); };
        }
예제 #2
0
        private void Awake()
        {
            entity        = GetComponent <Entity>();
            locomotion    = GetComponent <Locomotion>();
            turn          = GetComponent <TurnComponent>();
            mapManager    = Locator.Get <MapManager>();
            entityManager = Locator.Get <EntityManager>();

            up    = new int2(0, 1);
            right = new int2(1, 0);
            down  = new int2(0, -1);
            left  = new int2(-1, 0);
        }
예제 #3
0
 private void Awake()
 {
     entity     = GetComponent <Entity>();
     turn       = GetComponent <TurnComponent>();
     blackboard = new Blackboard();
 }