コード例 #1
0
    public void Burn()
    {
        if ((state != State.ATTACKING && state != State.PAUSED && state != State.RETREATING) ||
            status != Status.CUT)
        {
            return;
        }

        int index = (int)torchController.GetComponent <SteamVR_TrackedObject> ().index;

        StartCoroutine(RunHaptics(index, Time.time));
        stump1.GetComponent <SnakeStump>().PlaySound("BURN");
        stump1.transform.FindChild("BloodSprayEffect").gameObject.SetActive(false);
        stump1.transform.FindChild("BloodStreamEffect").gameObject.SetActive(false);
        stump1.transform.FindChild("FlamesParticleEffect").gameObject.SetActive(true);

        status = Status.DEAD;
        hydra.LoseHead();
    }