You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
676 B
22 lines
676 B
using UnityEngine; |
|
using System.Collections; |
|
using AX.MessageSystem; |
|
using UnityEngine.UI; |
|
public class BaseTool : MonoBehaviour { |
|
|
|
public string Name = ""; |
|
void Start() |
|
{ |
|
GetComponent<Button>().onClick.AddListener(ButtonOnClick); |
|
} |
|
public void ButtonOnClick() |
|
{ |
|
MessageDispatcher.SendMessage(transform.parent.parent.parent.name,"InstantiateButton", gameObject); |
|
MessageDispatcher.SendMessage("ControlPolygonFalse", (object)""); |
|
if (UIController.instance.PolygonPlane != null) |
|
{ |
|
UIController.instance.PolygonPlane.SetActive(false); |
|
} |
|
InputManager.Instance_.enabled = true; |
|
} |
|
}
|
|
|