public override void OnInspectorGUI() { base.OnInspectorGUI(); m_UI_WorldPos = (target as UI_WorldPos); if (GUILayout.Button("Set to World Pos")) { m_UI_WorldPos.UpdatePos(); } }
void Update() { worldPos.UpdatePos(); }