public override void DrawInspector() { base.DrawInspector(); FollowMethod.FollowType newType = (FollowMethod.FollowType)EditorGUILayout.EnumPopup("Follow Type", followType); ChangeFollowType(newType); EditorGUILayout.Space(); DrawFollowMethod(); }
public void ChangeFollowType(FollowMethod.FollowType newType) { followType = newType; switch (newType) { case FollowMethod.FollowType.None: ChangeFollowType_None(); break; case FollowMethod.FollowType.Mouse: ChangeFollowType_Mouse(); break; case FollowMethod.FollowType.Keyboard: ChangeFollowType_Keyboard(); break; case FollowMethod.FollowType.Object: ChangeFollowType_Object(); break; } }