Exemple #1
0
        void Move(Vector3 manipulationData)
        {
            var delta = manipulationData * MoveSpeed;

            if (CollisonDetector.CheckIfCanMoveBy(delta))
            {
                transform.position += delta;// changed from localPosition to test
            }
        }
Exemple #2
0
        void Move(Vector3 manipulationData)
        {
            var delta = manipulationData * MoveSpeed;

            if (CollisonDetector.CheckIfCanMoveBy(delta))
            {
                transform.localPosition += delta;
            }
        }