// Use this for initialization void Start () { if (instance != null) Destroy (this); instance = this; audiosource = GetComponent<AudioSource> (); ritualEnableBtn.onClick.AddListener (SetupRitual); ritualDisableBtn.onClick.AddListener (DisableRitual); ritualDisableBtn.gameObject.SetActive (false);; ritualEnableBtn.gameObject.SetActive (true); }
// Use this for initialization void Start () { spelCaster = GameObject.FindObjectOfType<SpellCaster> (); ritualScript = GameObject.FindObjectOfType<RitualScript> (); }