Beispiel #1
0
        /// <summary>
        /// Check current phase/state and card's position and perform mouse drag.
        /// </summary>
        private void CardClick(PhaseId logic, CreatureCard c)
        {
            CardLogic cardLogic   = new CardLogic();
            bool      isMouseDown = Input.GetMouseButtonDown(0);

            if (!isMouseDown)
            {
                if (c != null)
                {
                    cardLogic.SetToAttack(c);
                    //TODO: Check current state / phase and perform action
                }
            }
        }