void OnTriggerEnter2D(Collider2D other) { catcher.ItsFinish(); catcher.AvarageTimeAE(); catcher.TopRecord(); Debug.Log("Wykryto"); }
void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { GameObject.Find("Manager").GetComponent <Counter>().pointsCatcher = TakePoints; BeginLevelPoints = TakePoints.ToString(); Invoke("LoadSummary", 1f); Invoke("LoadNewScene", 6f); catcher.ItsFinish(); catcher.AvarageTimeAE(); catcher.TopRecord(); //invokeTrig.TryToString(); Debug.Log("Wykryto"); //this.gameObject.SetActive(false); } }