public void OnEnable() { ResetCutScene(); instance = this; if (isTesting && !string.IsNullOrEmpty(testingFile)) { SetCutScene(testingFile); } }
void Start() { if (instancia == null) { instancia = this; } for (int i = 0; i < cameras.Count; i++) { cameras[i].SetActive(false); } cameras[0].SetActive(true); ativa = 0; }
void Awake() { audioSource = GetComponent <AudioSource>(); if (instancia == null) { instancia = this; } else if (instancia != null) { Destroy(gameObject); } for (int i = 0; i < cameras.Count; i++) { anim.Add(cameras[i].GetComponent <Animator>()); desativarCamera(i); } ativa = 0; ativarCamera(ativa); audioSource.PlayOneShot(musica); }
void Awake() { cutSceneController = this; }
void Awake() { cutSceneController = (CutSceneController)FindObjectOfType(typeof(CutSceneController)); }
public void OnDestroy() { instance = null; }