コード例 #1
0
ファイル: WallComponent.cs プロジェクト: boyjimeking/yuanli
 /// <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);
     }
 }
コード例 #2
0
ファイル: WallComponent.cs プロジェクト: boyjimeking/yuanli
 public override void Init()
 {
     this.enabled = false;
     m_dir        = IsoWall.WallDirection.Center;
 }