Beispiel #1
0
    public byte Foo(Vector3 pos)                             // new Vector3(10.5f,15.2f,20.8f)
    {
        int x = ClassB.Floor(pos.x);                         // 10
        //Debug.Log(x);
        Vector3 objPosition = gameObject.transform.position; // new Vector3(12.19f, 1f, -10f);
        float   xx          = objPosition.x;                 // 12.19f
        int     px          = ClassB.Floor(xx);              //12

        //Debug.Log(px);
        return(new byte());
    }