Last active
August 31, 2019 13:34
-
-
Save JoseMiguelPizarro/60199c63d8630697a1c5350534fd143b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public abstract class LevelMeshTool | |
{ | |
public abstract string IconPath { get; } | |
public abstract string ToolName { get; } | |
public GUIContent Content { get; set; } | |
public Texture2D IconTexture { get; set; } | |
public abstract void Act(LevelMeshEditor editorState, Event current); | |
public LevelMeshTool() | |
{ | |
IconTexture = AssetDatabase.LoadAssetAtPath<Texture2D>(IconPath); | |
Content = new GUIContent(IconTexture); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment