コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     outerDR = outer.GetComponent <DragRotate>();
     innerDR = inner.GetComponent <DragRotate>();
     //FindCurrentNumbers();
     //Invoke("LateStart", 0.3f);
 }
コード例 #2
0
ファイル: DragRotate.cs プロジェクト: vitefait-xr/Unity-tools
    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();
    }
コード例 #3
0
ファイル: DragRotate.cs プロジェクト: vitefait-xr/Unity-tools
 private void Awake()
 {
     Instance = this;
 }