void Check() { //yield return new WaitForSeconds(0.1f); var s = StartPosition; _trigersTutorial.SetStartPosition(s.position.x, s.position.y, s.position.z); _trigersTutorial.ShowTutorialHint(nameButton, triggerOrder); //Destroy(gameObject); }
void OnTriggerEnter(Collider other) { if (other.tag == "BodyCollider") { var s = StartPosition; _trigersTutorial.SetStartPosition(s.position.x, s.position.y, s.position.z); _trigersTutorial.ShowTutorialHint(nameButton, triggerOrder); //Destroy(gameObject); } }