コード例 #1
0
        public void OnWrongBallCollision()
        {
            _canMove = false;

            var disolveMaterialName = CurrentType.GetDisolveMaterialName();
            var disolveMaterial     = materials.First(x => x.name == disolveMaterialName);

            _meshRenderer.material = disolveMaterial;
            animator.SetTrigger("StartDisolve");
        }