Example #1
0
    public void LoadStepState(StepStateHolder stepStateHolder)
    {
        if (CompletedStepStates.ContainsKey(Helper.GetObjectLocalIdInFile(stepStateHolder)))
        {
            string methodName = "LoadStepState" + Helper.UcFirst(stepStateHolder.StepStateSlug);

            if (ClassReflector.HasMethod(this, methodName))
            {
                ClassReflector.DynamicInvoke(this, methodName, stepStateHolder);
            }
            else
            {
                throw new System.Exception("The method " + methodName + " doesn't exist in the current class.");
            }
        }
    }
Example #2
0
 public void LoadStepStateDeactivate(StepStateHolder stepStateHolder)
 {
     stepStateHolder.affectedGameObject.SetActive(false);
 }
Example #3
0
 public void RegisterStepState(StepStateHolder stepStateHolder)
 {
     CompletedStepStates.Add(Helper.GetObjectLocalIdInFile(stepStateHolder), stepStateHolder.StepStateSlug);
 }