21 lines
456 B
C#
21 lines
456 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class Player : Node3D
|
|
{
|
|
private int counter = 0;
|
|
public override void _Ready()
|
|
{
|
|
GD.Print("Hello World!");
|
|
GD.Print("Don't Panic!");
|
|
}
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
if (Input.IsActionJustPressed("ui_accept")){
|
|
GD.Print("Spacebar is pressed");
|
|
counter += 1;
|
|
GD.Print("Counter: " + counter);
|
|
}
|
|
}
|
|
}
|