Пример #1
0
 /// <summary>
 /// 玩家进入到x格子上
 /// </summary>
 public void PlayerEnterGrid(ZillionaireGameMapGridDefInfo gridData, bool isDelivery = false)
 {
     _curGridID = gridData.ID;
     //隐藏格子icon
     gridData.HideIcon(true);
     EnterOrigin(gridData, false, isDelivery);
 }
Пример #2
0
    /// <summary>
    /// 设置玩家到目标格子
    /// </summary>
    /// <param name="gridData"></param>
    public void SetPlayerTargetGuid(ZillionaireGameMapGridDefInfo gridData)
    {
        _currGridData = gridData;
        //隐藏格子icon
        gridData.HideIcon(false);
        Vector3 point     = _currGridData.WorldPosition;
        Vector3 tagePoint = transform.parent.InverseTransformPoint(point);

        transform.localPosition = tagePoint;
    }