//Constructor public MoveCommand(MoveCommandReceiver reciever, MoveDirectionEnum direction, float distance, GameObject gameObjectToMove) { this._receiver = reciever; this._direction = direction; this._distance = distance; this._gameObject = gameObjectToMove; }
//Constructor public MoveCommand(MoveCommandReceiver reciever, MoveDirection direction, float distance, GameObject gameObjectToMove) { _receiver = reciever; _direction = direction; _distance = distance; _gameObject = gameObjectToMove; }
//Constructor public MoveCommand(MoveCommandReceiver reciever, MoveDirection direction, float distance, GameObject gameObjectToMove, Map map) { this._receiver = reciever; this._direction = direction; this._distance = distance; this._gameObject = gameObjectToMove; this._Map = map; }
void Start() { moveCommandReciever = new MoveCommandReceiver(); if (objectToMove == null) { Debug.LogError("objectToMove must be assigned via inspector"); this.enabled = false; } }
void Start() { moveCommandReciever = new MoveCommandReceiver(); }