void Awake() { if (instance == null) { instance = this; } else { Destroy(this.gameObject); } }
// Use this for initialization void Start() { formmMngr = this.GetComponent <PlayerFormManager>(); meta = this.GetComponent <PlayerMetadata>(); agent = this.GetComponent <NavMeshAgent>(); }
private void Start() { myPlayer = this.GetComponent <PlayerMetadata>(); myPlayerMgr = this.GetComponent <PlayerFormManager>(); }