Exemplo n.º 1
0
        public void ConvertToSerializable(Hammer hammer)
        {
            var transform = hammer.transform;
            var position  = transform.position;

            x = (int)position.x;
            y = (int)position.y;
            z = (int)position.z;

            var eulerAngles = transform.eulerAngles;

            u = (int)eulerAngles.x;
            v = (int)eulerAngles.y;
            w = (int)eulerAngles.z;
        }
Exemplo n.º 2
0
        public Hammer GetHammer()
        {
            var hammer = new Hammer();

            return(hammer);
        }