// Use this for initialization void Start() { anim = GetComponent <Animator>(); invRune = RuneScriptInv.rune; anim.SetBool("activation", true); boulderCtrl = boulderController.boulder; }
// Use this for initialization void Awake() { //This allows this object to be the only object in existance if (rune == null) { rune = this; } else if (rune != this) { Destroy(gameObject); } }