fixed HUD buttons, added eastereggs, fixed object spawn, added coordinates, enabled new tutorial, v1.2.0
This commit is contained in:
@@ -28,5 +28,16 @@ namespace UnityStandardAssets.Water
|
||||
Mathf.Repeat(offset4.z, 1.0f), Mathf.Repeat(offset4.w, 1.0f));
|
||||
mat.SetVector("_WaveOffset", offsetClamped);
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.tag != null)
|
||||
{
|
||||
if (other.gameObject.tag.ToLower().Contains("object"))
|
||||
{
|
||||
Destroy(other.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user