Update Tile materials for improved rendering; adjust properties for transparency and emission effects
This commit is contained in:
@@ -22,9 +22,7 @@ namespace Infrastructure.Unity
|
||||
|
||||
[Self][SerializeField] private Rigidbody rb;
|
||||
[Self][SerializeField] private MeshRenderer meshRenderer;
|
||||
|
||||
public Rigidbody Rigidbody => rb;
|
||||
public MeshRenderer MeshRenderer => meshRenderer;
|
||||
[Self] [SerializeField] private Collider col;
|
||||
|
||||
private MaterialPropertyBlock _propBlock;
|
||||
private static readonly int ColorProperty = Shader.PropertyToID("_BaseColor");
|
||||
@@ -98,6 +96,7 @@ namespace Infrastructure.Unity
|
||||
{
|
||||
rb.isKinematic = false;
|
||||
rb.useGravity = true;
|
||||
col.enabled = false;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user