presque fini
This commit is contained in:
@@ -2,6 +2,7 @@ using Godot;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
public partial class Player : CharacterBody2D
|
||||
{
|
||||
@@ -148,8 +149,10 @@ public partial class Player : CharacterBody2D
|
||||
time.Text = string.Format("{0:D2}:{1:D2}", heure, (int)Math.Floor(minute));
|
||||
}
|
||||
|
||||
void OverCaniche()
|
||||
async void OverCanicheAsync()
|
||||
{
|
||||
await ToSignal(GetTree().CreateTimer(3), "timeout");
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
GetTree().Paused = true;
|
||||
audio.Stream = aud_caniche;
|
||||
audio.Play();
|
||||
@@ -160,6 +163,7 @@ public partial class Player : CharacterBody2D
|
||||
async void OverShotgun()
|
||||
{
|
||||
await ToSignal(GetTree().CreateTimer(0.8), "timeout");
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
audio.Stream = aud_shotgun;
|
||||
audio.Play();
|
||||
GetTree().Paused = true;
|
||||
@@ -169,6 +173,7 @@ public partial class Player : CharacterBody2D
|
||||
}
|
||||
void OverCaramel()
|
||||
{
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
audio.Stream = aud_caramel;
|
||||
audio.Play();
|
||||
|
||||
@@ -179,6 +184,7 @@ public partial class Player : CharacterBody2D
|
||||
}
|
||||
void OverGlissemie()
|
||||
{
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
audio.Stream = aud_glissemie;
|
||||
audio.Play();
|
||||
GetTree().Paused = true;
|
||||
@@ -188,6 +194,7 @@ public partial class Player : CharacterBody2D
|
||||
}
|
||||
void OverVoiture()
|
||||
{
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
audio.Stream = aud_voiture;
|
||||
audio.Play();
|
||||
GetTree().Paused = true;
|
||||
@@ -197,6 +204,7 @@ public partial class Player : CharacterBody2D
|
||||
}
|
||||
void OverWin()
|
||||
{
|
||||
Input.MouseMode = Input.MouseModeEnum.Visible;
|
||||
audio.Stream = aud_win;
|
||||
audio.Play();
|
||||
GetTree().Paused = true;
|
||||
|
||||
Reference in New Issue
Block a user