修改出库
This commit is contained in:
parent
717b52744c
commit
347e334666
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 022f4660dae079d429dfdce7291d573f
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class TaskData : TaskDataBase
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
base.Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void GetData()
|
||||||
|
{
|
||||||
|
base.GetData();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SetData()
|
||||||
|
{
|
||||||
|
base.SetData();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void CheckAnswer()
|
||||||
|
{
|
||||||
|
base.CheckAnswer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e001374575e08b24a9552eaa361e9fb5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class TaskDataBase : MonoBehaviour
|
||||||
|
{
|
||||||
|
//数据索引 名称
|
||||||
|
public string taskDataKye;
|
||||||
|
|
||||||
|
//数据值
|
||||||
|
public string taskDataValue;
|
||||||
|
|
||||||
|
//是否 用户可以输入
|
||||||
|
public bool isInputData;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
protected virtual void Start()
|
||||||
|
{
|
||||||
|
taskDataKye = transform.name;
|
||||||
|
if (!isInputData)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < transform.childCount; i++)
|
||||||
|
{
|
||||||
|
if (transform.GetChild(i).GetComponent<Selectable>())
|
||||||
|
{
|
||||||
|
transform.GetChild(i).GetComponent<Selectable>().interactable = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取 当前名称数据
|
||||||
|
public virtual void GetData()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 将数据设置到文本中
|
||||||
|
public virtual void SetData()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//检查答案
|
||||||
|
public virtual void CheckAnswer()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c9fd19ef3fc40fe4eb6bf2d23000172d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -59,10 +59,16 @@ public class Menu : MonoBehaviour
|
||||||
public void SelectTask(Text taskText)
|
public void SelectTask(Text taskText)
|
||||||
{
|
{
|
||||||
PlayerPrefs.SetString("Task", taskText.text);
|
PlayerPrefs.SetString("Task", taskText.text);
|
||||||
|
|
||||||
|
|
||||||
if (PlayerPrefs.GetString("Task").Equals("10kV电缆终端调拨物资入库"))
|
if (PlayerPrefs.GetString("Task").Equals("10kV电缆终端调拨物资入库"))
|
||||||
{
|
{
|
||||||
SceneManager.LoadScene("Operation_LH");
|
SceneManager.LoadScene("Operation_LH");
|
||||||
}
|
}
|
||||||
|
else if(PlayerPrefs.GetString("Task").Equals("10Kv变压器领料物资出库"))
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene("Operation_CHUKU");
|
||||||
|
}
|
||||||
else if (PlayerPrefs.GetString("Task").Equals("柱上断路器调拨入库"))
|
else if (PlayerPrefs.GetString("Task").Equals("柱上断路器调拨入库"))
|
||||||
{
|
{
|
||||||
SceneManager.LoadScene("Operation_HJY");
|
SceneManager.LoadScene("Operation_HJY");
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,7 @@ EditorBuildSettings:
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scene/Scenes/Operation_LHTest.unity
|
path: Assets/Scene/Scenes/Operation_LHTest.unity
|
||||||
guid: 3f3c6fe9523c67e4686f07e7263817ec
|
guid: 3f3c6fe9523c67e4686f07e7263817ec
|
||||||
|
- enabled: 1
|
||||||
|
path: Assets/Scene/Scenes/Operation_CHUKU.unity
|
||||||
|
guid: 022f4660dae079d429dfdce7291d573f
|
||||||
m_configObjects: {}
|
m_configObjects: {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue