示例#1
0
    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);
    }
示例#2
0
        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);
            }
        }
示例#3
0
 private static void EOTResponseUnwrapper()
 {
     //EOT is reached-> No more Auto-next
     AutoNext.ResetEverything();
     Debug.Log("EOT reached");
 }