Exemplo n.º 1
0
    void Start()
    {
        t = this.transform;
        GameObject temp = GameObject.Find("Reimu");

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