public override void OnInspectorGUI() { ThrowableWithoutSuction ThrowableWithoutSuction = (ThrowableWithoutSuction)target; this.throwableWithoutSuction.useSIGVerseDefault = EditorGUILayout.ToggleLeft("Use SIGVerse Default", this.throwableWithoutSuction.useSIGVerseDefault); if (!ThrowableWithoutSuction.useSIGVerseDefault) { base.OnInspectorGUI(); } }
private void Awake() { this.throwableWithoutSuction = (ThrowableWithoutSuction)target; }