void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } world.Init(); }
private void Awake() { Instance = this; world.Init(); }
// Start is called before the first frame update void Start() { instance = this; ParentMap = parentMap; }