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 () {
}
}
Hiç yorum yok:
Yorum Gönder