예제 #1
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);
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     sprite   = GetComponent <SpriteRenderer>();
     rainRune = RuneScriptRain.rune;
     opacity  = 0f;
 }