fixed HUD buttons, added eastereggs, fixed object spawn, added coordinates, enabled new tutorial, v1.2.0

This commit is contained in:
Nicola Sovic
2022-04-12 14:18:37 +02:00
parent cb7541ce85
commit 0ce547fb74
10 changed files with 382 additions and 27 deletions

View File

@@ -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);
}
}
}
}
}