void TaskOnClick1() { if (add[0] == 1) { Destroy(icon); Instantiate(sound, transform.position, transform.rotation); JudgementLine.GetComponent <KDHStar>().Addpoint(1); } }
void TaskOnClick1() { if (add[0] == 1) { Destroy(icon); Instantiate(sound, transform.position, transform.rotation); Instantiate(badeffect, new Vector3(-99.56f, 5.97f, 0), transform.rotation); JudgementLine.GetComponent <KDHStar>().Addpoint(1); } }