Example #1
0
            public UIStandardInputModule(TouchScriptInputModule input)
            {
                this.input = input;

#if UNITY_5_6_OR_NEWER
                uiSampler = CustomSampler.Create("[TouchScript] Update UI");
#endif
            }
Example #2
0
 protected override void OnDisable()
 {
     disable();
     if (instance == this)
     {
         instance = null;
     }
     base.OnDisable();
 }
Example #3
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (instance == null)
            {
                instance = this;
            }
            else
            {
                if (instance == this)
                {
                    return;
                }
                Destroy(this);
            }
        }
Example #4
0
            public UIStandardInputModule(TouchScriptInputModule input)
            {
                this.input = input;

                uiSampler = CustomSampler.Create("[TouchScript] Update UI");
            }