コード例 #1
0
    public void Block()
    {
        blocking = true;

        Instantiate(smokePoofPrefab, transform.position + Vector3.up, Quaternion.identity);

        pAudioManager.PlayBlockSound();
        playerModel.SetActive(false);
        blockingModel.SetActive(true);
        rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionZ;
    }