private void Awake() { if (Instance) { Destroy(gameObject); } else { Instance = this; } }
void Awake() { IsActive = true; hitList = new List <Collider2D>(); newHitList = new List <Collider2D>(); tpea = new TouchPadEventArgs(); if (Instance) { Destroy(gameObject); } else { Instance = this; } }
/// <summary> /// Enable or disable touch pad callbacks handling. /// </summary> internal static void SetTouchActivity(bool activity) { TouchPad.SetTouchActivity(activity); }