PlayerAnimationEvents.CmdendOfSpecialAttack C# (CSharp) Method

CmdendOfSpecialAttack() private method

private CmdendOfSpecialAttack ( ) : void
return void
    public void CmdendOfSpecialAttack()
    {
        GameObject instance = null;
        instance = (GameObject)Instantiate (dustImpact, transform.position + new Vector3(0,-40,0), dustImpact.transform.rotation);
        NetworkServer.Spawn (instance);
        Destroy (instance, instance.GetComponent<ParticleSystem>().duration + 0.5f);
        instance = (GameObject)Instantiate (fractureImpact, transform.position + new Vector3(0,-40,0), transform.rotation);
        instance.transform.rotation = Quaternion.Euler(90,0,0);
        NetworkServer.Spawn (instance);
        Destroy (instance, 5f);
    }
PlayerAnimationEvents