Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class ConjurationTableEvents : MonoBehaviour
- {
- public delegate void CombinationAction();
- public static event CombinationAction OnCombine;
- public GameObject sCardEffect;
- void Awake(){
- }
- public void CombineButton()
- {
- if (OnCombine != null)
- {
- OnCombine();
- sCardEffect.SetActive (true);
- StartCoroutine(RestartSpawnCardEffect());
- }
- }
- IEnumerator RestartSpawnCardEffect()
- {
- yield return new WaitForSeconds(2);
- sCardEffect.SetActive (false);
- }
- }
Add Comment
Please, Sign In to add comment