18 lines
439 B
C#
18 lines
439 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class Player : Node3D
|
|
{
|
|
public override void _Process(double delta)
|
|
{
|
|
if (Input.IsActionPressed("ui_accept")){
|
|
Position += new Vector3(0, 1, 0) * (float)delta;
|
|
}
|
|
if (Input.IsActionPressed("ui_left")){
|
|
RotateZ((float)delta);
|
|
}
|
|
if (Input.IsActionPressed("ui_right")){
|
|
RotateZ(-(float)delta);
|
|
}
|
|
}
|
|
}
|