IEnumerator WaitSomeWhile() { cameraEffect.StartAnimation(); yield return(new WaitForSeconds(freezeTime)); cameraEffect.CancelAnimation(); particle.Play(); inst_input.AllowInput(); }
void InstantiateFairy() { originCameraPos = inst_cam.transform.position; originCameraRot = inst_cam.transform.rotation; inst_input.DisableInput(); Fairy.SetActive(true); cameraEffect.StartAnimation(); startedTime = Time.time; StartCoroutine("CameraAnimation"); }
public void StartCinema(float waitTime = float.PositiveInfinity) { cinemaEffect.StartAnimation(waitTime); }