private static void TagReachedResponseUnwrapper(TagReachedResponse trr) { AutoNext.ResetEverything(); //Disable Auto-next GameObject actorConcerned = Actors.allActors[trr.actorId]; //Make the send message threadsafe SendMessageContext context = new SendMessageContext(actorConcerned, "TagReached", trr, SendMessageOptions.RequireReceiver); SendMessageHelper.RegisterSendMessage(context); }
public static void Init() { try { SharedData = PreferenceManager.GetDefaultSharedPreferences(Application.Context); AutoNext = Application.Context.GetSharedPreferences("auto_next_perf", FileCreationMode.Private); UserDetails.AutoNext = AutoNext.GetBoolean(PrefKeyAutoNext, false); UserDetails.PipIsChecked = SharedData.GetBoolean("picture_in_picture_key", false); string getValue = SharedData.GetString("Night_Mode_key", string.Empty); ApplyTheme(getValue); } catch (Exception exception) { Console.WriteLine(exception); } }
private static void EOTResponseUnwrapper() { //EOT is reached-> No more Auto-next AutoNext.ResetEverything(); Debug.Log("EOT reached"); }