Example #1
0
 public static void MysteryResolved(Mysteries id)
 {
     if (source != null)
     {
         source.clip   = instance.clip;
         source.volume = 0.7f;
         source.Play();
     }
     fsm.current.MysterySolved(Instance, fsm, id);
 }
Example #2
0
 public override void MysterySolved(MysteryManager o, FSM <MysteryManager> fsm, Mysteries id)
 {
     mixer = GameObject.FindObjectOfType <PlanetsMixer> ();
     if (id == Mysteries.Hello)
     {
         helloDone++;
         if (helloDone >= 2)
         {
             mixer.NewState(1);
             fsm.ChangeState(MysterySlabsState.Instance);
             MysterySlabsState.Instance.canBeDone = true;
         }
     }
 }
Example #3
0
 public override void MysterySolved(MysteryManager o, FSM <MysteryManager> fsm, Mysteries id)
 {
     if (!canBeDone)
     {
         return;
     }
     mixer = GameObject.FindObjectOfType <PlanetsMixer> ();
     if (id == Mysteries.Hello)
     {
         MasterMindDone++;
         if (MasterMindDone >= 2)
         {
             fsm.ChangeState(FinalState.Instance);
         }
     }
 }
Example #4
0
 public override void MysterySolved(MysteryManager o, FSM <MysteryManager> fsm, Mysteries id)
 {
     if (!canBeDone)
     {
         return;
     }
     mixer = GameObject.FindObjectOfType <PlanetsMixer> ();
     if (id == Mysteries.SlabSign)
     {
         slabsDone++;
         if (slabsDone >= 2)
         {
             mixer.NewState(1);
             fsm.ChangeState(MasterMindState.Instance);
             MasterMindState.Instance.canBeDone = true;
         }
     }
 }
        private void FormatInput()
        {
            int Pos = Patron.IndexOf(PathfinderConstants.PAREN_LEFT);

            if (Pos > 0)
            {
                Patron = Patron.Substring(0, Pos - 1).Trim();
            }

            Bloodline = Bloodline.Replace("*", string.Empty);
            Bloodline = Bloodline.Replace("-", PathfinderConstants.SPACE);


            ClassList = Utility.RemoveSuperScripts(ClassList);
            Domians   = Utility.RemoveSuperScripts(Domians);
            Mysteries = Utility.RemoveSuperScripts(Mysteries);
            Bloodline = Utility.RemoveSuperScripts(Bloodline);
            Patron    = Utility.RemoveSuperScripts(Patron);

            if (Bloodline.Length > 0)
            {
                Bloodline = Bloodline.ProperCase();
                Bloodline = Bloodline.Replace(PathfinderConstants.SPACE, string.Empty);
            }

            if (Mysteries.Length > 0)
            {
                Mysteries = Mysteries.ProperCase();
                Mysteries = Mysteries.Replace(PathfinderConstants.SPACE, string.Empty);
                Mysteries = Mysteries.Replace("*", string.Empty);
                Pos       = Mysteries.IndexOf(PathfinderConstants.PAREN_LEFT);
                if (Pos > 0)
                {
                    Mysteries = Mysteries.Substring(0, Pos).Trim();
                }
            }
        }
Example #6
0
 public virtual void MysterySolved(T o, FSM <T> fsm, Mysteries id)
 {
 }