コード例 #1
0
ファイル: DoorCell.cs プロジェクト: guillemsrr/StuckInALoop
        public override void Action( )
        {
            if (ContainedCharacter && _isActive)
            {
                _animator.SetTrigger(OPERATE_ANIMATION);
                ContainedCharacter.Teleport(_startCell.Coordinate);
            }

            base.Action();
        }
コード例 #2
0
        public override void Action()
        {
            if (!ContainedCharacter)
            {
                return;
            }

            if (_isActive)
            {
                ContainedCharacter.Teleport(_teleportCell.Coordinate);
            }

            base.Action();
        }