// Start is called before the first frame update void Start() { outerDR = outer.GetComponent <DragRotate>(); innerDR = inner.GetComponent <DragRotate>(); //FindCurrentNumbers(); //Invoke("LateStart", 0.3f); }
public override void OnInspectorGUI() { DragRotate script = target as DragRotate; System.Collections.Generic.List <string> excludedProperties = new System.Collections.Generic.List <string>(); if (!script.useSpeedCurve) { excludedProperties.Add("speedCurve"); } else { excludedProperties.Add("speed"); } DrawPropertiesExcluding(serializedObject, excludedProperties.ToArray()); serializedObject.ApplyModifiedProperties(); }
private void Awake() { Instance = this; }