コード例 #1
0
    /// Should player NOT stick to the station at this position?
    public bool IsNonStickyAt(Vector3Int position, bool isServer)
    {
        foreach (Vector3Int pos in position.BoundsAround().allPositionsWithin)
        {
            if (!MetaTileMap.IsNoGravityAt(pos, isServer))
            {
                return(false);
            }
        }

        return(true);
    }
コード例 #2
0
 /// Is current position NOT a station tile? (Objects not taken into consideration)
 public bool IsNoGravityAt(Vector3Int position, bool isServer)
 {
     return(MetaTileMap.IsNoGravityAt(position, isServer));
 }
コード例 #3
0
ファイル: Matrix.cs プロジェクト: svensis/unitystation
 /// Is current position NOT a station tile? (Objects not taken into consideration)
 public bool IsNoGravityAt(Vector3Int position)
 {
     return(metaTileMap.IsNoGravityAt(position));
 }