Exemplo n.º 1
0
        void Start()
        {
            resetTransform = new TransformData(transform);
            Level.AddToLevel(this);

            transform.FindChild("Body").GetComponent<Renderer>().material.color = vehicleColor;
        }
Exemplo n.º 2
0
 void Awake()
 {
     origin = new Bridger.TransformData(transform);
     popupAnim = PopupPanel.GetComponent<Animator>();
 }
Exemplo n.º 3
0
        public bool EndStretch()
        {
            editing = false;
            if(partLength < Grid.gridSize)
            {
                Destroy(gameObject);
                return false;
            }
            originConnection = SetupConnectionAtPosition(partOrigin);
            endConnection = SetupConnectionAtPosition(partEnd);

            rigid.mass = partMass;
            resetTransform = new TransformData(transform);
            Level.AddToLevel(this);
            return true;
        }