Example #1
0
 private void Awake()
 {
     if (Instance)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
Example #2
0
        void Awake()
        {
            IsActive   = true;
            hitList    = new List <Collider2D>();
            newHitList = new List <Collider2D>();
            tpea       = new TouchPadEventArgs();

            if (Instance)
            {
                Destroy(gameObject);
            }
            else
            {
                Instance = this;
            }
        }
Example #3
0
 /// <summary>
 /// Enable or disable touch pad callbacks handling.
 /// </summary>
 internal static void SetTouchActivity(bool activity)
 {
     TouchPad.SetTouchActivity(activity);
 }