private void HandleMainCharacter () { Character character = Menu.Instance.GetCharacterByType (CharacterType.Ataraxia); characterTransform = character.transform; character.MoveTo (finalPosition.position); characterMove = character.GetComponent<CharacterMoveToPoint> (); }
private void HandleMainCharacter() { Character character = Menu.Instance.GetCharacterByType(CharacterType.Ataraxia); characterTransform = character.transform; character.MoveTo(finalPosition.position); characterMove = character.GetComponent <CharacterMoveToPoint> (); }
private ICharacterMoveInput GetInputToMove(CharacterMoveToPoint character) { if (Helpers.IsDeviceMobile) { return(new CharacterMoveByTouch(character, Camera.main)); } else { return(new CharacterMoveByMouse(character, Camera.main)); } }
private ICharacterMoveInput GetInputToMove (CharacterMoveToPoint character) { if(Helpers.IsDeviceMobile) return new CharacterMoveByTouch (character,Camera.main); else return new CharacterMoveByMouse (character,Camera.main); }
public CharacterMoveByMouse (CharacterMoveToPoint character, Camera camera) { characerController = character; cameraToRay = camera; }
public CharacterMoveByMouse(CharacterMoveToPoint character, Camera camera) { characerController = character; cameraToRay = camera; }