using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class CreateRolePostProcessor { public static bool HasPlayMovie(int playerId) { return LocalSave.GetBool(StringUtility.Contact(playerId, "_CreateRolePostMovie")); } public static void RecordPlayMovie(int playerId) { LocalSave.SetBool(StringUtility.Contact(playerId, "_CreateRolePostMovie"), true); } static Action onEnd; public static void Begin(Action onComplete) { onEnd = onComplete; PlayMovie(); } static void PlayMovie() { MoviePlayer.Instance.Play("CreateRoleMovie", PlayCameraAnimation); } static void PlayCameraAnimation() { if (onEnd != null) { onEnd(); } } }