예제 #1
0
 // Use this for initialization
 void Start()
 {
     anim    = GetComponent <Animator>();
     invRune = RuneScriptInv.rune;
     anim.SetBool("activation", true);
     boulderCtrl = boulderController.boulder;
 }
예제 #2
0
 // 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);
     }
 }