animation
This commit is contained in:
@@ -31,6 +31,9 @@ public class DropletMovement : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
//collision
|
||||
|
||||
|
||||
//dashing
|
||||
if (isDashing)
|
||||
@@ -72,6 +75,12 @@ public class DropletMovement : MonoBehaviour
|
||||
rb.linearVelocity = new Vector2(movement.x * moveSpeed, rb.linearVelocity.y);
|
||||
}
|
||||
|
||||
/*void OnCollisionEnter2D(Collision2D collision)
|
||||
{
|
||||
//if (collision.collider.GetType() == typeof(BoxCollider) && collision.collider.GetComponent == ) {
|
||||
Destroy(gameObject); //base: destroys the game object
|
||||
}*/
|
||||
|
||||
private IEnumerator Dash()
|
||||
{
|
||||
canDash = false;
|
||||
|
||||
Reference in New Issue
Block a user