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

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