/// <summary> /// Moves the character one space in a direction. /// </summary> /// <param name="character">Character.</param> /// <param name="direction">Direction. eg. (MoveCharacter(player0, TileClass.NORTH))</param> public void MoveCharacter(GameObject character, int direction) { CharacterClass cc = character.GetComponent <CharacterClass>(); if (cc != null) { cc.Move(direction); } }