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