コード例 #1
0
ファイル: States.cs プロジェクト: julenka/mrtk-tips
        public static States GetDefaultInteractableStates()
        {
            States result = CreateInstance <States>();

            InteractableStates allInteractableStates = new InteractableStates();

            result.StateType    = Type.GetType(typeof(InteractableStates).AssemblyQualifiedName);
            result.StateOptions = InteractableTypeFinder.Find(candidateStateTypes, TypeRestriction.AllowBase);
            result.StateList    = allInteractableStates.GetDefaultStates();
            result.DefaultIndex = 0;
            return(result);
        }
コード例 #2
0
 /// <summary>
 /// Get the recieverBase types that contain event logic
 /// </summary>
 public static InteractableTypesContainer GetEventTypes()
 {
     return(InteractableTypeFinder.Find(candidateEventTypes, TypeRestriction.DerivedOnly));
 }
コード例 #3
0
 public void SetupStateOptions()
 {
     StateOptions = InteractableTypeFinder.Find(candidateStateTypes, TypeRestriction.AllowBase);
 }