// Start is called before the first frame update void Start() { GreatCount = 0; gradeNice = GradeNice.GetComponent <GradeNice>(); HitText.SetActive(false); SE = SEgameObject.GetComponent <AudioSource>(); }
void Start() { rb = GetComponent <Rigidbody2D>(); isPressed = false; grading = Grading.GetComponent <Grading>(); gradeNice = GradeNice.GetComponent <GradeNice>(); SE = SEgameObject.GetComponent <AudioSource>(); power = 0f; }
// Start is called before the first frame update void Start() { text = Text.GetComponent <Text>(); total = 0; Canvas2.SetActive(false); WinLoseText = Canvas2.transform.Find("WinLoseText").gameObject.GetComponent <Text>(); ThrowText = Canvas2.transform.Find("ThrowText").gameObject.GetComponent <Text>(); btnNextLevel = Canvas2.transform.Find("NextLevel").gameObject; btnNextLevel.SetActive(false); btnReplay = Canvas2.transform.Find("Replay").gameObject; btnReplay.SetActive(false); gradeNice = GradeNice.GetComponent <GradeNice>(); gradeGreat = GradeGreat.GetComponent <GradeGreat>(); }