Example #1
0
            public void ReTarget([CanBeNull] Actor actor, int gridWeight)
            {
                if (null != TargetGrid && TargetGridSlot >= 0)
                {
                    TargetGrid.EmptyGridSlot(TargetGridSlot);
                }
                TargetGrid     = null;
                TargetGridSlot = -1;

                Actor = actor;

                Player player = Actor as Player;

                if (null != player)
                {
                    TargetGrid     = player.KungFuGrid;
                    TargetGridSlot = TargetGrid.GetAvailableGridSlot(gridWeight);
                }
            }