Пример #1
0
        public void SetPosition(LevelBlock lastBlock)
        {
            var position = Vector2.zero;

            if (lastBlock)
            {
                position = lastBlock._endPoint.position - _beginPoint.localPosition;
            }

            transform.position = position;
        }
Пример #2
0
 public PlayerIntoBlockTriggerEnter(LevelBlock levelBlock)
 {
     LevelBlock = levelBlock;
 }