Beispiel #1
0
 protected override void InitImpl()
 {
     SetBoxCollider();
     mPanel = gameObject.GetComponent <UIPanel>();
     PUIManager.GetInstance().PushUIWindow(this);
     AddAction(OnExitImpl, EXIT_ACTION);
 }
Beispiel #2
0
    protected void OnExitImpl()
    {
        PUIManager instance = PUIManager.GetInstance(false);

        if (instance != null)
        {
            instance.PopUIWindow(this);
        }
    }
Beispiel #3
0
    void Awake()
    {
        Vector3 vector3 = transform.localEulerAngles;

        vector3.x = 0;
        transform.localEulerAngles = vector3;
        PUIManager.GetInstance().CreateTopLayer(transform);
        Vector3 localPos = transform.localPosition;

        localPos.z = -5000;
        transform.localPosition = localPos;
    }