
场景【序章-家中】 1.修改对话角色参数【父亲】的名字改为父亲 2.修改对话角色参数【主角】的名字为“我” 场景【序章-战场】 1.使导弹生成与远处,无伤害判定 2.修改导弹生成高度,避免其露出个头来 3.修改父亲骨骼,目前其手部存在问题 场景【第一关】 1.调整图层解决遮挡问题 2.修改导弹生成高度,避免其露出个头来 3.增加导弹出现频率 场景【第二关】 1.注释了死亡 2.调节了角色图层
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
public class AllLinesInfo : MonoBehaviour
|
|
{
|
|
//总线信息类,用来存储场景中电话线断裂的总体信息,
|
|
// Start is called before the first frame update
|
|
[SerializeField]
|
|
private int needCount;
|
|
public int OKCount = 0;
|
|
void Start()
|
|
{
|
|
needCount = transform.childCount;
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public bool AreYouOK(){return (needCount == OKCount);}//返回完成量是不是等于需求量
|
|
|
|
// //制造一个只读的变量,不要动这些
|
|
// public class ReadOnlyAttribute : PropertyAttribute{}
|
|
// [CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
|
|
// public class ReadOnlyDrawer : PropertyDrawer
|
|
// {
|
|
// public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
|
// {
|
|
// return EditorGUI.GetPropertyHeight(property, label, true);
|
|
// }
|
|
|
|
// public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
|
// {
|
|
// GUI.enabled = false;
|
|
// EditorGUI.PropertyField(position, property, label, true);
|
|
// GUI.enabled = true;
|
|
// }
|
|
// }
|
|
// //
|
|
}
|