/// <summary> /// 设置墙朝向 /// </summary> /// <param name="direction"></param> private void SetWallDirection(IsoWall.WallDirection direction) { if (m_dir != direction) { m_dir = direction; Entity.view.SetSprite(Entity.animationNamePrefix + (int)direction); } }
public override void Init() { this.enabled = false; m_dir = IsoWall.WallDirection.Center; }