void Start() { t = this.transform; GameObject temp = GameObject.Find("Reimu"); if (temp) { reimu = temp.GetComponent <Transform>(); hit = temp.GetComponent <ReimuBoss> (); } }
private void _Spark() { if (!Input.GetKeyDown(KeyCode.X)) { return; } Spark.MasterSpark(out bool isDying); //if (!isDying) // return; GameObject[] dangan = GameObject.FindGameObjectsWithTag("EBullet"); ReimuBoss r = GameObject.Find("Reimu").GetComponent <ReimuBoss> (); for (int i = 0; i < dangan.Length; i++) { Destroy(dangan[i]); } if (r) { r.GetHit(SparkHit); } }
void Start() { Time.timeScale = 0f; begin = GameObject.Find("Reimu").GetComponent <ReimuBoss>(); }