protected virtual bool ALE__GENERATED__GetValue(int id, out object value) { if (id == 0) { value = value1; return(true); } if (id == 1) { value = value2; return(true); } if (id == 3) { value = value3; return(true); } if (id == 10) { value = new ComponentDataWrapper(goReference); return(true); } if (id == 11) { value = new ComponentDataWrapper(trsReference); return(true); } value = null; return(false); }
public IEnumerator SetValueTransformList() { ILevelEditorObject newSphere = objectManager.CreateObject("sphere"); ILevelEditorObject newCapsule = objectManager.CreateObject("capsule"); ComponentDataWrapper array1 = new ComponentDataWrapper(new Component[] { newSphere.MyGameObject.transform, newCapsule.MyGameObject.transform }); ComponentDataWrapper array2 = new ComponentDataWrapper(new Component[] { newCapsule.MyGameObject.transform, newSphere.MyGameObject.transform }); yield return(SetValueTest <ComponentDataWrapper, TransformList>(array1, array2)); }
public IEnumerator SetValueTransform() { ILevelEditorObject newSphere = objectManager.CreateObject("sphere"); ILevelEditorObject newCapsule = objectManager.CreateObject("capsule"); ComponentDataWrapper sphereRef = new ComponentDataWrapper(newSphere.MyGameObject.transform); ComponentDataWrapper capsuleRef = new ComponentDataWrapper(newCapsule.MyGameObject.transform); yield return(SetValueTest <ComponentDataWrapper, TransformReference>(sphereRef, capsuleRef)); }
public IEnumerator SetValueGameObjectArray() { ILevelEditorObject newSphere = objectManager.CreateObject("sphere"); ILevelEditorObject newCapsule = objectManager.CreateObject("capsule"); ComponentDataWrapper array1 = new ComponentDataWrapper(new[] { newSphere.MyGameObject, newCapsule.MyGameObject }); ComponentDataWrapper array2 = new ComponentDataWrapper(new[] { newCapsule.MyGameObject, newSphere.MyGameObject }); yield return(SetValueTest <ComponentDataWrapper, GameObjectArray>(array1, array2)); }
public IEnumerator SetValueScriptList() { sphere.AddComponent <TempTestScript>(); capsule.AddComponent <TempTestScript>(); ILevelEditorObject newSphere = objectManager.CreateObject("sphere"); ILevelEditorObject newCapsule = objectManager.CreateObject("capsule"); ComponentDataWrapper array1 = new ComponentDataWrapper(new TempTestScript[] { newSphere.MyGameObject.GetComponent <TempTestScript>(), newCapsule.MyGameObject.GetComponent <TempTestScript>() }); ComponentDataWrapper array2 = new ComponentDataWrapper(new TempTestScript[] { newCapsule.MyGameObject.GetComponent <TempTestScript>(), newSphere.MyGameObject.GetComponent <TempTestScript>() }); yield return(SetValueTest <ComponentDataWrapper, ScriptList>(array1, array2)); }
public IEnumerator SetValueScript() { sphere.AddComponent <TempTestScript>(); capsule.AddComponent <TempTestScript>(); ILevelEditorObject newSphere = objectManager.CreateObject("sphere"); ILevelEditorObject newCapsule = objectManager.CreateObject("capsule"); ComponentDataWrapper sphereRef = new ComponentDataWrapper(newSphere.MyGameObject.GetComponent <TempTestScript>()); ComponentDataWrapper capsuleRef = new ComponentDataWrapper(newCapsule.MyGameObject.GetComponent <TempTestScript>()); yield return(SetValueTest <ComponentDataWrapper, ScriptReference>(sphereRef, capsuleRef)); }