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(); }; }
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); }
private void Awake() { entity = GetComponent <Entity>(); turn = GetComponent <TurnComponent>(); blackboard = new Blackboard(); }