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