示例#1
0
    void Start()
    {
        t = this.transform;
        GameObject temp = GameObject.Find("Reimu");

        if (temp)
        {
            reimu = temp.GetComponent <Transform>();
            hit   = temp.GetComponent <ReimuBoss> ();
        }
    }
示例#2
0
    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);
        }
    }
示例#3
0
 void Start()
 {
     Time.timeScale = 0f;
     begin          = GameObject.Find("Reimu").GetComponent <ReimuBoss>();
 }