/// <summary> /// Spawns a single object and positions it correctly /// </summary> public virtual void Spawn() { _gameObject = Instantiate(ObjectToInstantiate); SceneManager.MoveGameObjectToScene(_gameObject, this.gameObject.scene); MMSpawnAround.ApplySpawnAroundProperties(_gameObject, SpawnProperties, this.transform.position); }
/// <summary> /// Spawns a single object and positions it correctly /// </summary> public virtual void Spawn() { _gameObject = Instantiate(ObjectToInstantiate); MMSpawnAround.ApplySpawnAroundProperties(_gameObject, SpawnProperties, this.transform.position); }