finished portal fundimentals

This commit is contained in:
2025-03-09 20:43:38 +02:00
parent 960991b17d
commit b62e851c0e
1229 changed files with 46770 additions and 7301 deletions

24
Assets/Scripts/Command.cs Normal file
View File

@@ -0,0 +1,24 @@
//Command.cs
using UnityEngine;
public abstract class Command
{
public abstract KeyCode Key { get; set; }
public abstract string Description { get; }
/*
Todo:
1. Add an abstract Execute method with an argument for receiver.
For your consideration:
What would make for a good Execute receiver parameter?
Should we try to limit the receiver types?
How precisely can we limit the receiver's type?
Could we move the receiver into command data instead?
What are the benefits of either approach? Which works best here?
*/
/*
2. Create a MoveCommand class, which executes Walk method in TileBasedMovement component.
Execute method of this command should call the Walk(Vector3 direction) method of GridMovement.
*/
}