public void _orderHero_Move(string moveType) { if (!_orderConditions()) { return; } switch (moveType) { case "Up": hero._move_Increment(90); break; case "Down": hero._move_Increment(270); break; case "Left": hero._move_Increment(180); break; case "Right": hero._move_Increment(0); break; } }
public void _moveHero() { if (hero.state == "moving") { //Conditions: if (!_orderMoveHerMG_Conditions(hero.facing)) { return; } hero._move_Increment(moveAngle); MG_ControlCamera.I._reposition(hero.sprite.transform.position.x, hero.sprite.transform.position.y); //Events /*Map border check*/ if (_borderCheck(hero.facing)) { return; } } }