Beispiel #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        m_UI_WorldPos = (target as UI_WorldPos);


        if (GUILayout.Button("Set to World Pos"))
        {
            m_UI_WorldPos.UpdatePos();
        }
    }
Beispiel #2
0
 void Update()
 {
     worldPos.UpdatePos();
 }