public void DrawBefore(CyberAttribute cyberAttrribute) { OnlyRuntimeAttribute atr = cyberAttrribute as OnlyRuntimeAttribute; if (Application.isPlaying == false) { GUI.enabled = false; } }
public bool CanDraw(CyberAttribute cyberAttrribute) { OnlyRuntimeAttribute atr = cyberAttrribute as OnlyRuntimeAttribute; return(atr.ActionIfNotRuntime == ActionIfNotRuntime.Disable || Application.isPlaying); }