浏览代码

Add Rolling credits to GameplayScene

/main
uChema 3 年前
当前提交
1eaafa64
共有 6 个文件被更改,包括 311 次插入8 次删除
  1. 131
      UOP1_Project/Assets/Scenes/Managers/Gameplay.unity
  2. 12
      UOP1_Project/Assets/Scripts/UI/UICredits.cs
  3. 1
      UOP1_Project/Assets/Scripts/UI/UIMenuManager.cs
  4. 2
      UOP1_Project/ProjectSettings/QualitySettings.asset
  5. 166
      UOP1_Project/Assets/Prefabs/UI/WIP/Credits_Panel_FinalScreen.prefab
  6. 7
      UOP1_Project/Assets/Prefabs/UI/WIP/Credits_Panel_FinalScreen.prefab.meta

131
UOP1_Project/Assets/Scenes/Managers/Gameplay.unity


debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!224 &511380159 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
m_PrefabInstance: {fileID: 7815952524517826525}
m_PrefabAsset: {fileID: 0}
--- !u!114 &670213351 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8980297398607076176, guid: ccad748453924ff4092fe3e5b978d8e5,

- {fileID: 978261885}
- {fileID: 4949818870599756131}
- {fileID: 1479900142}
- {fileID: 511380159}
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

m_Script: {fileID: 11500000, guid: 8f5450ac502f84bd89a993767b4d01e0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &7815952524517826525
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1869732381}
m_Modifications:
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460293, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460294, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_Name
value: Credits_Panel
objectReference: {fileID: 0}
- target: {fileID: 2273541362857460294, guid: 6f8c5e8a271a38540a27afab7424c7d5,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6f8c5e8a271a38540a27afab7424c7d5, type: 3}
--- !u!1001 &8304245671203898743
PrefabInstance:
m_ObjectHideFlags: 0

12
UOP1_Project/Assets/Scripts/UI/UICredits.cs


private void OnEnable()
{
_inputReader.menuCloseEvent += CloseCreditsScreen;
SetCreditsScreen();
public void SetCreditsScreen()
private void SetCreditsScreen()
{
_creditsRoller.rollingEnded += EndRolling;
FillCreditsRoller();

}
public void CloseCreditsScreen()
private void CloseCreditsScreen()
public void FillCreditsRoller()
private void FillCreditsRoller()
{
_creditsList = new CreditsList();
TextAsset creditsList = Resources.Load(_creditsFilename) as TextAsset;

}
public void SetCreditsText()
private void SetCreditsText()
{
string creditsText = "";
for (int i = 0; i < _creditsList.Contributors.Count; i++)

_creditsText.text = creditsText;
}
public void EndRolling()
private void EndRolling()
{
if (_creditsRollEndEvent != null)
_creditsRollEndEvent.RaiseEvent();

1
UOP1_Project/Assets/Scripts/UI/UIMenuManager.cs


public void OpenCreditsScreen()
{
_creditsPanel.gameObject.SetActive(true);
_creditsPanel.SetCreditsScreen();
_creditsPanel.closeCreditsAction += CloseCreditsScreen;

2
UOP1_Project/ProjectSettings/QualitySettings.asset


skinWeights: 4
textureQuality: 0
anisotropicTextures: 1
antiAliasing: 2
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 1

166
UOP1_Project/Assets/Prefabs/UI/WIP/Credits_Panel_FinalScreen.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &7815952524619863395
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4183443505173494034, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4183443505173494034, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6472991824597497641, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.8
objectReference: {fileID: 0}
- target: {fileID: 6472991824597497641, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_SizeDelta.y
value: -140
objectReference: {fileID: 0}
- target: {fileID: 6472991824597497641, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -70
objectReference: {fileID: 0}
- target: {fileID: 7668864389926187046, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250150811881581, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151146825051, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615845, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Name
value: Credits_Panel
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615846, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8357250151446615847, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 94ca6d0c15c4b4a2cbbe4758a17b8dfb, type: 3}

7
UOP1_Project/Assets/Prefabs/UI/WIP/Credits_Panel_FinalScreen.prefab.meta


fileFormatVersion: 2
guid: 6f8c5e8a271a38540a27afab7424c7d5
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存