Beispiel #1
0
        private void OnCardProfileClicked(CardProfileEvent cardProfileEvent)
        {
           
            if (cardProfileEvent.Type == CardProfileEvent.UIEventType.Open)
            {
                Debug.Log("BattleController - CardProfileEvent Open");
            }
            else if (cardProfileEvent.Type == CardProfileEvent.UIEventType.Close)
            {
                puzzleBattleBoard.HideCardProfile(); 
            }
            else if (cardProfileEvent.Type == CardProfileEvent.UIEventType.Press)
            {
                puzzleBattleBoard.HideCardProfile(); 

            }
            //puzzleBattleBoard.HideCardProfile(); 
        }
Beispiel #2
0
 public void OnCardProfileClicked(CardProfileEvent cardProfileEvent)
 {
     if (cardProfileEvent.CardType == this.internalCard && cardProfileEvent.Type == CardProfileEvent.UIEventType.Press)
     {
         //TODO: This doesn't work right now because i can't seem to pass the touch or current touched object 
         //OnPress(true); 
     }
 }