using Unity.
VisualScripting;
using UnityEngine;
public class Mover : MonoBehaviour
{
// Start is called once before the first execution of Update after the
MonoBehaviour is created
[SerializeField] float moveSpeed = 10f;
void Start()
{
Rules();
// Update is called once per frame
void Update()
{
Controller();
}
void Rules ()
{
[Link]("Welcome to the Game");
[Link]("Use W,A,S,D to control the Player");
[Link]("If you go out of the Wall you Lose");
void Controller()
{
float Xaxis = [Link]("Horizontal") * [Link] * moveSpeed;
float Yaxis = 0.0f;
float Zaxis = [Link]("Vertical") * [Link] * moveSpeed;
[Link](Xaxis, Yaxis, Zaxis);