public override void OnInspectorGUI() { base.OnInspectorGUI(); EditPillarSprite editPillar = (EditPillarSprite)target; if (GUILayout.Button("Àû¿ë")) { editPillar.SetPillar(); } // else if(GUILayout.Button("»èÁ¦")) { // DestroyImmediate(target); // } }
private void Awake() { EditPillarSprite editPillar = (EditPillarSprite)target; editPillar.Init(); }