Exemplo n.º 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.");
            }
        }
    }
Exemplo n.º 2
0
 public void LoadStepStateDeactivate(StepStateHolder stepStateHolder)
 {
     stepStateHolder.affectedGameObject.SetActive(false);
 }
Exemplo n.º 3
0
 public void RegisterStepState(StepStateHolder stepStateHolder)
 {
     CompletedStepStates.Add(Helper.GetObjectLocalIdInFile(stepStateHolder), stepStateHolder.StepStateSlug);
 }