animation

This commit is contained in:
orsolya-st
2026-06-06 10:02:11 +02:00
parent d2f404f87e
commit 8de62e2d42
2 changed files with 29 additions and 20 deletions
+20 -20
View File
@@ -172,8 +172,8 @@ TextureImporter:
y: 39 y: 39
width: 155 width: 155
height: 92 height: 92
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -194,8 +194,8 @@ TextureImporter:
y: 37 y: 37
width: 155 width: 155
height: 87 height: 87
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -216,8 +216,8 @@ TextureImporter:
y: 38 y: 38
width: 163 width: 163
height: 83 height: 83
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -238,8 +238,8 @@ TextureImporter:
y: 36 y: 36
width: 168 width: 168
height: 80 height: 80
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -260,8 +260,8 @@ TextureImporter:
y: 35 y: 35
width: 177 width: 177
height: 76 height: 76
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -282,8 +282,8 @@ TextureImporter:
y: 37 y: 37
width: 182 width: 182
height: 64 height: 64
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -304,8 +304,8 @@ TextureImporter:
y: 38 y: 38
width: 176 width: 176
height: 68 height: 68
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -326,8 +326,8 @@ TextureImporter:
y: 40 y: 40
width: 163 width: 163
height: 84 height: 84
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -348,8 +348,8 @@ TextureImporter:
y: 37 y: 37
width: 161 width: 161
height: 92 height: 92
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
@@ -370,8 +370,8 @@ TextureImporter:
y: 38 y: 38
width: 164 width: 164
height: 104 height: 104
alignment: 0 alignment: 7
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
customData: customData:
outline: [] outline: []
+9
View File
@@ -31,6 +31,9 @@ public class DropletMovement : MonoBehaviour
void Update() void Update()
{ {
//collision
//dashing //dashing
if (isDashing) if (isDashing)
@@ -72,6 +75,12 @@ public class DropletMovement : MonoBehaviour
rb.linearVelocity = new Vector2(movement.x * moveSpeed, rb.linearVelocity.y); 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() private IEnumerator Dash()
{ {
canDash = false; canDash = false;