Esempio n. 1
0
        public static UIObj createUIObj(string name, Texture2D passedText, Delegate passedDel, Tuple <int, int> passedPosition, float passedScale)
        {
            RigidBillboard uiBB = new RigidBillboard(passedText);

            uiBB.scaleBillboard(passedScale);
            uiBB.moveBillboard(new Vector3(passedPosition.Item1, passedPosition.Item2, 0));

            return(new UIObj(name, uiBB, passedDel, passedPosition));
        }