Ejemplo n.º 1
0
    public void change_facing_direction(dino_facing_direction facing_direction)
    {
        var scale = this.transform.localScale;

        scale.x = Mathf.Abs(scale.x) * (dino_facing_direction.left == facing_direction ? -1.0f: 1.0f);

        this.transform.localScale = scale;
    }
Ejemplo n.º 2
0
 public void change_facing_direction(dino_facing_direction facing_direction)
 {
     this._movement_offset = this.dino_movement_offset[facing_direction];
 }