void Start() { circle = GameObject.FindWithTag("Circle"); GameManag = GameObject.Find("GameManager"); hitsScript = GameManag.GetComponent <GameManagers>(); MCanvas = GameObject.Find("MainCanvas"); Vibration.Init(); }
// Use this for initialization void Awake() { Application.runInBackground = true; if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }