void Start() { if (prefabUIObject != null) { uiObject = Instantiate(prefabUIObject) as UIObject; uiObject.transform.parent = UIRoot2D.Get().game.transform; uiObject.transform.localPosition = transform.position; uiObject.transform.localRotation = transform.rotation; uiObject.transform.localScale = Vector3.one; buttonController = uiObject.GetComponent <UIButtonController>(); } Start_(); }
// Use this for initialization IEnumerator Start() { root2D = UIRoot2D.Get(); panelGame = root2D.game; // 初期化 mainPanel.transform.localPosition = Vector3.zero; yield return(StartCoroutine(StartSequenceTitle())); state = State.Update; texLightMulti = panelGame.GetLightMulti(); texLightAdd = panelGame.GetLightAdd(); }
void OnTriggerExit2D(Collider2D hit2D) { UIRoot2D.Get().indicator.HideInformation(); }
void OnTriggerEnter2D(Collider2D hit2D) { UIRoot2D.Get().indicator.DispInformation("テスト\nだよ\nあしだ\nまなだよ"); }
void OnDestroy() { UIRoot2D.Get().RemoveButtonController(this); }
void Awake() { UIRoot2D.Get().AddButtonController(this); }