예제 #1
0
        private void HandleTimerExpired()
        {
            hub.Publish(new UnitMoved()
            {
                fromCoords = position.coords,
                toCoords   = hexToMoveTo.coords,
            });

            position.RemoveEntity();
            hexToMoveTo.AddEntity(parent);
            position           = hexToMoveTo;
            hexToMoveTo.locked = false;
            hexToMoveTo        = null;
            movingTimer.Stop();

            parent.GetComponent <StateComponent>().DoneActing();
        }