コード例 #1
0
 static VariablesToSave()
 {
     VariablesToSave._randomNumber = UnityEngine.Random.Range(10, 200);
     DelegateSupport.RegisterFunctionType <VariablesToSave, string>();
     DelegateSupport.RegisterFunctionType <VariablesToSave, bool>();
     DelegateSupport.RegisterFunctionType <VariablesToSave, int>();
 }
コード例 #2
0
 static StoreMaterials()
 {
     DelegateSupport.RegisterFunctionType <Texture2D, int>();
     DelegateSupport.RegisterFunctionType <StoreMaterials, List <MaterialProperty> >();
     DelegateSupport.RegisterFunctionType <MaterialProperty, MaterialProperty.PropertyType>();
     DelegateSupport.RegisterFunctionType <MaterialProperty, string>();
     DelegateSupport.RegisterFunctionType <StoredValue, MaterialProperty>();
     DelegateSupport.RegisterFunctionType <StoredValue, object>();
 }
コード例 #3
0
ファイル: StoreMaterials.cs プロジェクト: ahvonenj/TheForest
 static StoreMaterials()
 {
     StoreMaterials.cache = new Index <string, List <StoreMaterials.MaterialProperty> >();
     DelegateSupport.RegisterFunctionType <Texture2D, int>();
     DelegateSupport.RegisterFunctionType <StoreMaterials, List <StoreMaterials.MaterialProperty> >();
     DelegateSupport.RegisterFunctionType <StoreMaterials.MaterialProperty, StoreMaterials.MaterialProperty.PropertyType>();
     DelegateSupport.RegisterFunctionType <StoreMaterials.MaterialProperty, string>();
     DelegateSupport.RegisterFunctionType <StoreMaterials.StoredValue, StoreMaterials.MaterialProperty>();
     DelegateSupport.RegisterFunctionType <StoreMaterials.StoredValue, object>();
 }
コード例 #4
0
 static RadicalRoutineHelper()
 {
     DelegateSupport.RegisterFunctionType <RadicalRoutineHelper, string>();
     DelegateSupport.RegisterFunctionType <RadicalRoutineHelper, bool>();
     DelegateSupport.RegisterFunctionType <RadicalRoutineHelper, Transform>();
 }
コード例 #5
0
 static VariablesToSave()
 {
     DelegateSupport.RegisterFunctionType <VariablesToSave, string>();
     DelegateSupport.RegisterFunctionType <VariablesToSave, bool>();
     DelegateSupport.RegisterFunctionType <VariablesToSave, int>();
 }
コード例 #6
0
 static CreateChildSphere()
 {
     DelegateSupport.RegisterFunctionType <CreateChildSphere, string>();
     DelegateSupport.RegisterFunctionType <CreateChildSphere, bool>();
     DelegateSupport.RegisterFunctionType <CreateChildSphere, Transform>();
 }