Exemplo n.º 1
0
 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_();
 }
Exemplo n.º 2
0
    // 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();
    }
Exemplo n.º 3
0
 void OnTriggerExit2D(Collider2D hit2D)
 {
     UIRoot2D.Get().indicator.HideInformation();
 }
Exemplo n.º 4
0
 void OnTriggerEnter2D(Collider2D hit2D)
 {
     UIRoot2D.Get().indicator.DispInformation("テスト\nだよ\nあしだ\nまなだよ");
 }
Exemplo n.º 5
0
 void OnDestroy()
 {
     UIRoot2D.Get().RemoveButtonController(this);
 }
Exemplo n.º 6
0
 void Awake()
 {
     UIRoot2D.Get().AddButtonController(this);
 }