예제 #1
0
 void Awake()
 {
     this.navScript = transform.GetComponent <_NavigatorScript>();
     if (this.navScript == null)
     {
         this.navScript = transform.gameObject.AddComponent <_NavigatorScript>();
     }
 }
예제 #2
0
 void Awake()
 {
     this.navScript = transform.GetComponent<_NavigatorScript>();
     if (this.navScript == null)
         this.navScript = transform.gameObject.AddComponent<_NavigatorScript>();
 }