Beispiel #1
0
        private void EndingBuildingMode(Process process)
        {
            _Process = process;
            _Process.Start();

            ControlSys.ShieldValue.Request(nameof(BuildingModeCamera), StartMoveShieldValue);
            _AutoMoving = true;

            Trans.DOMove(
                FpsCamera.Ins.transform.position,
                MoveToStartPosTime).OnComplete(EndMoveComplete);
            Trans.DORotateQuaternion(FpsCamera.Ins.transform.rotation, MoveToStartPosTime);
        }
Beispiel #2
0
        private void StartingBuildingMode(Process process)
        {
            gameObject.SetActive(true);

            _Process = process;
            _Process.Start();

            Trans.position = FpsCamera.Ins.transform.position;
            Trans.rotation = FpsCamera.Ins.transform.rotation;

            ControlSys.ShieldValue.Request(nameof(BuildingModeCamera), StartMoveShieldValue);
            _AutoMoving = true;

            var targetPos = new Vector3(0, Height, 0) + Map.Ins.Center + StartOffsetPos;

            Trans.DOMove(
                targetPos,
                MoveToStartPosTime).OnComplete(StartMoveComplete);
            Trans.DORotateQuaternion(_StartRot, MoveToStartPosTime);
        }