Hi mazket!
Are you trying to acces a **Script Component** named "Button" or an **GameObject**?
**If Button is an object:**
using UnityEngine;
using System.Collections;
public class Cooldown : MonoBehaviour {
public GameObject used;
// Use this for initialization
void startCD ()
{
StartCoroutine (SkillCD ());
}
// Update is called once per frame
IEnumerator SkillCD ()
{
yield return new WaitForSeconds(10f);
used = GameObject.FindGameObjectWithTag ("Used");
used.GetComponent
↧