2021-07-01 23:35:25 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class IndexRecoder : MonoBehaviour
|
|
|
|
|
{
|
2021-08-09 23:45:01 +08:00
|
|
|
|
//策划接口类,储存了所有易变的数值,每一项都写了toolTip,谁叫我是小棉袄呢❤对了,电报的字典也写在这里
|
2021-07-01 23:35:25 +08:00
|
|
|
|
// Start is called before the first frame update
|
2021-07-08 19:52:46 +08:00
|
|
|
|
[Tooltip("角色普通移动速度")]
|
2021-07-01 23:35:25 +08:00
|
|
|
|
public float playerMoveSpeed;//角色普通移动速度
|
2021-07-08 19:52:46 +08:00
|
|
|
|
[Tooltip("角色跳跃力度")]
|
2021-07-01 23:35:25 +08:00
|
|
|
|
public float playerJumpSpeed;//角色跳跃力度
|
2021-07-08 19:52:46 +08:00
|
|
|
|
[Tooltip("角色跑步的时候,速度是普通状态的多少倍")]
|
2021-07-01 23:35:25 +08:00
|
|
|
|
public float runSpeedMultiple;//角色跑步的时候,速度是普通状态的多少倍
|
2021-07-08 19:52:46 +08:00
|
|
|
|
[Tooltip("判定输入为点还是横线的界限时间")]
|
2021-07-01 23:35:25 +08:00
|
|
|
|
public float dotRoLineTime;//判定输入为点还是横线的界限时间
|
2021-07-08 19:52:46 +08:00
|
|
|
|
public Dictionary<string, string> codeBook = new Dictionary<string, string>();//摩尔斯电码字典
|
|
|
|
|
[Tooltip("角色修复电话线需要多长时间")]
|
|
|
|
|
public float TelephoneNeedTime;//角色修复电话线需要多长时间
|
|
|
|
|
[Tooltip("炮弹生成的最小时间间隔")]
|
|
|
|
|
public float bombingAreaMinimumTimeInterval;
|
|
|
|
|
[Tooltip("炮弹生成的最大时间间隔")]
|
|
|
|
|
public float bombingAreaMaximumTimeInterval;
|
|
|
|
|
[Tooltip("生成炮弹位置离玩家的最大偏移量")]
|
|
|
|
|
public float bombingAreaMaxOffSetOfShell;
|
|
|
|
|
[Tooltip("生成炮弹的高度")]
|
|
|
|
|
public float bombingAreaShellHeight;
|
|
|
|
|
[Tooltip("炮弹的下落速度")]
|
|
|
|
|
public float shellSpeed;
|
|
|
|
|
[Tooltip("炮弹的下落时间")]
|
|
|
|
|
public float shellFallingTime;
|
|
|
|
|
[Tooltip("炮弹阴影的震动幅度")]
|
|
|
|
|
public float shellShadowRangeOfChange;
|
|
|
|
|
[Tooltip("炮弹阴影的Y值偏移")]
|
|
|
|
|
public float shellShadowPositionYOffSet;
|
2021-07-23 01:21:25 +08:00
|
|
|
|
[Tooltip("玩家投掷角度变化的速度")]
|
|
|
|
|
public float rateOfChangeOfThrowingAngle;
|
|
|
|
|
[Tooltip("抛出投掷物的力度")]
|
|
|
|
|
public float strengthOfThrowing;
|
2021-07-08 19:52:46 +08:00
|
|
|
|
|
2021-07-01 23:35:25 +08:00
|
|
|
|
void Start()
|
|
|
|
|
{
|
2021-07-03 21:34:47 +08:00
|
|
|
|
GameObject.DontDestroyOnLoad(gameObject);
|
2021-07-18 23:58:09 +08:00
|
|
|
|
//开发者捷径
|
2021-07-20 00:35:19 +08:00
|
|
|
|
codeBook.Add("..--.","864246511");
|
|
|
|
|
codeBook.Add("--..-","02948");
|
2021-07-18 23:58:09 +08:00
|
|
|
|
//
|
|
|
|
|
codeBook.Add(".----","1");
|
|
|
|
|
codeBook.Add("..---","2");
|
|
|
|
|
codeBook.Add("...--","3");
|
|
|
|
|
codeBook.Add("....-","4");
|
|
|
|
|
codeBook.Add(".....","5");
|
|
|
|
|
codeBook.Add("-....","6");
|
|
|
|
|
codeBook.Add("--...","7");
|
|
|
|
|
codeBook.Add("---..","8");
|
|
|
|
|
codeBook.Add("----.","9");
|
|
|
|
|
codeBook.Add("-----","0");
|
2021-07-01 23:35:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|