コード例 #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();
        }
コード例 #3
0
        public override void Action()
        {
            if (!ContainedCharacter || _triggered)
            {
                return;
            }

            ContainedCharacter.Reset();
            LevelHandler.EndLevel();

            if (_levelStartEffect)
            {
                _levelStartEffect.StartEffect();
            }

            _triggered = true;

            base.Action();
        }
コード例 #4
0
        public override void Action( )
        {
            if (!_isActive)
            {
                ActivateCells(false);
                base.Action();
                return;
            }

            if (!ContainedCharacter)
            {
                ActivateCells(false);
                return;
            }

            ContainedCharacter.Clone();
            ActivateCells(true);

            base.Action();
        }