Beispiel #1
0
 private void updateMonsterGlow()
 {
     if (monsterModel.isApplied() && !glowSprite.enabled)
     {
         glowSprite.enabled = true;
     }
     else if (!monsterModel.isApplied())
     {
         glowSprite.enabled = false;
     }
 }
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (!monsterCardModel.isApplied())
     {
         buff = collision.transform.parent.GetComponentInChildren <BuffCardModel>();
         if (buff && buff.isDragging())
         {
             //transform.parent.HoverPunch();
             monsterCardModel.IsHoveringApplied = true;
             if (monsterCardModel.State == MonsterCardState.active)
             {
                 buff.State = BuffCardState.draggingOverDrawThreeApply;
             }
             else if (monsterCardModel.State == MonsterCardState.left)
             {
                 buff.State = BuffCardState.draggingOverSwitchLeftApply;
             }
             else if (monsterCardModel.State == MonsterCardState.right)
             {
                 buff.State = BuffCardState.draggingOverSwitchRightApply;
             }
         }
     }
 }