Exemplo n.º 1
0
        public void IsDescendant_WithGrandParentAsAncestor_IsTrue()
        {
            m_Transform1.SetParent(m_Transform0);
            m_Transform2.SetParent(m_Transform1);

            Assert.IsTrue(m_Transform2.IsDescendant(m_Transform0), "Grand parent should return true");
        }
Exemplo n.º 2
0
        public void PlaceOnDropObject(DropObject dropObject)
        {
            TransformCache.SetParent(dropObject.TransformCache);
            TransformCache.localPosition = Vector2.zero;
            isClonning = false;
            if (lastDropObject != null)
            {
                lastDropObject.isEmpty = true;
            }

            dropObject.isEmpty = false;
            lastDropObject     = dropObject;
        }
Exemplo n.º 3
0
        public void SetParent_TransformHasParent()
        {
            m_Transform1.SetParent(m_Transform0);

            Assert.AreEqual(m_Transform0, m_Transform1.parent, "Parent transform is incorrect");
        }