Example #1
0
	private void HandleMainCharacter ()
	{
		Character character = Menu.Instance.GetCharacterByType (CharacterType.Ataraxia);
		characterTransform = character.transform;
		character.MoveTo (finalPosition.position);
		characterMove = character.GetComponent<CharacterMoveToPoint> ();
	}
Example #2
0
    private void HandleMainCharacter()
    {
        Character character = Menu.Instance.GetCharacterByType(CharacterType.Ataraxia);

        characterTransform = character.transform;
        character.MoveTo(finalPosition.position);
        characterMove = character.GetComponent <CharacterMoveToPoint> ();
    }
Example #3
0
 private ICharacterMoveInput GetInputToMove(CharacterMoveToPoint character)
 {
     if (Helpers.IsDeviceMobile)
     {
         return(new CharacterMoveByTouch(character, Camera.main));
     }
     else
     {
         return(new CharacterMoveByMouse(character, Camera.main));
     }
 }
Example #4
0
	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;
 }