Skip to content

Commit

Permalink
main logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amm266 committed Jan 25, 2020
1 parent d0f1095 commit 7adb2c4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Assets/scripts/BallScript.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

Expand Down Expand Up @@ -34,4 +35,16 @@ void Update()
}

}

private void OnCollisionEnter(Collision other)
{
if (other.gameObject.tag.Equals("finish"))
{
Debug.Log("win!");
}
else if (!other.gameObject.tag.Equals(this.tag))
{
Debug.Log("Lose!");
}
}
}
Binary file modified Library/InspectorExpandedItems.asset
Binary file not shown.
Binary file modified Library/SceneVisibilityState.asset
Binary file not shown.
Binary file modified Library/ShaderCache/EditorEncounteredVariants
Binary file not shown.
Binary file modified Library/assetDatabase3
Binary file not shown.

0 comments on commit 7adb2c4

Please sign in to comment.