Exemple #1
0
    public long GetGUID()
    {
        long time = LogicUtilTool.GetTimeStamp();

        if (time > this.mLastTime)
        {
            this.mLastTime = time;
            this.mGenNum   = 0;
        }
        this.mGenNum++;
        return(this.mLastTime * this.mIncreaseNum + this.mGenNum);
    }
Exemple #2
0
    // 0 1 2
    // 3 * 4
    // 5 6 7
    public static Vector2Int GetGridSidePosition(Vector3 a_pos, int a_idx)
    {
        Vector2Int pos = LogicUtilTool.GetGridPosition(a_pos);

        return(LogicUtilTool.GetGridSidePosition(pos, a_idx));
    }