예제 #1
0
        private static void ActivateParent(StateController controller)
        {
            IClickable parentAction = controller.transform.parent.GetComponent <IClickable>();

            if (parentAction != null)
            {
                //Avoid Problems with playing the last card of the deck
                controller.transform.SetParent(null);
                parentAction.Activate();
            }
        }