Exemplo n.º 1
0
        public void PositionSet_TransformPositionEqualsPosition()
        {
            FlyTarget flyTarget = InstantiateTarget();

            flyTarget.Position = _testPosition;
            Assert.AreEqual(flyTarget.Position, (Vector2)flyTarget.transform.position);
            GameObject.Destroy(flyTarget.gameObject);
        }
Exemplo n.º 2
0
        public void PositionSet_SetsPosition()
        {
            FlyTarget flyTarget = InstantiateTarget();

            flyTarget.Position = _testPosition;
            Assert.AreEqual(_testPosition, flyTarget.Position);
            GameObject.Destroy(flyTarget.gameObject);
        }