5 Nisan 2017 Çarşamba

Sahne Arası Geçişlerde Sesin Devam Etmesi İçin. Unity 2d

using UnityEngine;
using System.Collections;

public class MusicCalma : MonoBehaviour {

static MusicCalma ornek = null;
void Awake () {
if (ornek != null) {
Destroy (gameObject);
print ("2.ci ses yok edildi.");
} else {
ornek = this;
GameObject.DontDestroyOnLoad (gameObject);
print ("Obje getirildi");
}



}

// Update is called once per frame
void Update () {

}
}