grenouille assets

This commit is contained in:
Bryanna
2023-04-27 15:56:36 -07:00
parent 043675236f
commit 79194a1015
19 changed files with 22024 additions and 54 deletions

View File

@@ -156,6 +156,11 @@ public class PlayerBehavior : MonoBehaviour
stateController.spawnPoint.GetComponent<SpawnPointBehavior>().DeactivateSpawnPoint();
col.GetComponent<SpawnPointBehavior>().ActivateSpawnPoint();
}
else if (col.tag == "Trumpet")
{
this.playerController.in_range = true;
this.playerController.enemy = col.transform.parent.gameObject;
}
}
void OnTriggerExit2D(Collider2D col)
@@ -164,6 +169,11 @@ public class PlayerBehavior : MonoBehaviour
{
grappleSurface = null;
}
else if (col.tag == "Trumpet")
{
this.playerController.in_range = true;
this.playerController.enemy = null;
}
}
void OnCollisionEnter2D(Collision2D collision) {