public override void OnInspectorGUI() { base.OnInspectorGUI(); GenerateMap map = target as GenerateMap; map.GenMap(); }