예제 #1
0
파일: BurnLogic.cs 프로젝트: gavar/GJ-UGUNS
	// Use this for initialization
	private void Start ()
	{
		if (buttons == null)
		{
			buttons = GameUI.GetItemButtons(buttonsPoint ? buttonsPoint : gameObject);
			buttons.confirm.onClick.AddListener(Confirm);
			buttons.reject.onClick.AddListener(Reject);
		}
	}
예제 #2
0
파일: BurnLogic.cs 프로젝트: gavar/GJ-UGUNS
	public void OnDestroy ()
	{
		if (buttons)
		{
			Destroy(buttons.gameObject);
			buttons = null;
		}
	}