void Awake() { this.navScript = transform.GetComponent <_NavigatorScript>(); if (this.navScript == null) { this.navScript = transform.gameObject.AddComponent <_NavigatorScript>(); } }
void Awake() { this.navScript = transform.GetComponent<_NavigatorScript>(); if (this.navScript == null) this.navScript = transform.gameObject.AddComponent<_NavigatorScript>(); }