forked from nothke/yugodot
Initial, scripts
This commit is contained in:
18
scripts/CrateMover2.cs
Normal file
18
scripts/CrateMover2.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public class CrateMover2 : Spatial
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void _Process(float delta)
|
||||
{
|
||||
if (Input.IsKeyPressed((int)KeyList.A))
|
||||
{
|
||||
Transform = Transform.Translated(Vector3.Forward * delta);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user