Beispiel #1
0
    protected MovingObject NewCoin(int sector, float distance, float height = 0.5f)
    {
        MovingObject obj = enviroment.GetCoin();

        if (obj == null)
        {
            return(null);
        }
        obj.SetValues(mapValues, sector);
        obj.transform.parent = parent;
        obj.SetDistance(distance);
        obj.SetHeight(height);
        obj.Update();
        return(obj);
    }