void Start() { /// Persistent Object if (current == null) { current = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Start() { HudController obj = Instantiate(prefabHUD); obj.player = this; }
void Start() { /// Persistent Object if (current == null) { current = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Start() { HudController obj = Instantiate(prefabHUD); obj.player = this; }