Example #1
0
 void Update()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Example #2
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     ani = GetComponent <Animator>();
 }