Example #1
0
	SoundGO CreateSoundGO()
	{
		var go = GameObject.Instantiate(SoundObjectPrefab);
		// var go = new GameObject();
		var soundGO = new SoundGO();
		soundGO.StartTime = Time.time;
		soundGO.LifeTime = TimeToTravel;
		soundGO.GO = go;
		go.transform.position = StartPos.position;
		ActiveObjects.Add(soundGO);
		return soundGO;
	}
    SoundGO CreateSoundGO()
    {
        var go = GameObject.Instantiate(SoundObjectPrefab);
        // var go = new GameObject();
        var soundGO = new SoundGO();

        soundGO.StartTime     = Time.time;
        soundGO.LifeTime      = TimeToTravel;
        soundGO.GO            = go;
        go.transform.position = StartPos.position;
        ActiveObjects.Add(soundGO);
        return(soundGO);
    }