add scriptable object for funny text

This commit is contained in:
Marine 2024-01-29 22:17:14 +01:00
parent 75723a3b06
commit 675c41431a
7 changed files with 116 additions and 104 deletions

View File

@ -503,10 +503,10 @@ RectTransform:
- {fileID: 1572676829} - {fileID: 1572676829}
m_Father: {fileID: 703458665} m_Father: {fileID: 703458665}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 250, y: -197.70337}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 500, y: 59.081345}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &76361013 --- !u!222 &76361013
CanvasRenderer: CanvasRenderer:
@ -816,10 +816,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 150, y: -300}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &132605380 --- !u!114 &132605380
MonoBehaviour: MonoBehaviour:
@ -1589,10 +1589,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 1050, y: -300}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &340074661 --- !u!114 &340074661
MonoBehaviour: MonoBehaviour:
@ -2120,10 +2120,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 350, y: -300}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &496953434 --- !u!114 &496953434
MonoBehaviour: MonoBehaviour:
@ -2629,7 +2629,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 210.61394} m_AnchoredPosition: {x: 0, y: 210.61377}
m_SizeDelta: {x: 0, y: -421.2278} m_SizeDelta: {x: 0, y: -421.2278}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &619055282 --- !u!114 &619055282
@ -3326,10 +3326,10 @@ RectTransform:
- {fileID: 120283725} - {fileID: 120283725}
m_Father: {fileID: 703458665} m_Father: {fileID: 703458665}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 250, y: -113.62202}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 500, y: 59.081345}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &741267593 --- !u!114 &741267593
MonoBehaviour: MonoBehaviour:
@ -3934,10 +3934,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 1050, y: -100}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &983174567 --- !u!114 &983174567
MonoBehaviour: MonoBehaviour:
@ -4404,10 +4404,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 700, y: -100}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &1018720202 --- !u!114 &1018720202
MonoBehaviour: MonoBehaviour:
@ -4841,7 +4841,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &1117928115 --- !u!224 &1117928115
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -6395,10 +6395,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 350, y: -100}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &1452182577 --- !u!114 &1452182577
MonoBehaviour: MonoBehaviour:
@ -6687,23 +6687,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3} m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
texts: textList: {fileID: 11400000, guid: 5b22791c486a626428ab508347ebb36e, type: 2}
- Hideo Kojima is not executive director on this project.
- Medium-hot mustard > all
- Glaceon best eeveelution
- Made with lots of coffee
- Sell Lada, very little used, will be used very little
- It's not very cold at the moment
- 'If laziness were a sport, we would all be champions '
- Shinji Mikami has not approved this project (but we remain available)
- 'JRPG rules the world '
- Bravo les lesbiennes !
- 'Mer il est fou ! '
- Au revoir...
- '*Angry cat noise*'
- Nyaaaa ~
- Coded without JS (I think)
- I developed without counting
--- !u!1 &1503133438 --- !u!1 &1503133438
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -6971,7 +6955,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1} m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -43, y: -50.999878} m_AnchoredPosition: {x: -43, y: -51}
m_SizeDelta: {x: 200, y: 200} m_SizeDelta: {x: 200, y: 200}
m_Pivot: {x: 1, y: 1} m_Pivot: {x: 1, y: 1}
--- !u!114 &1567271223 --- !u!114 &1567271223
@ -7854,10 +7838,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 150, y: -100}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1794849355 --- !u!114 &1794849355
MonoBehaviour: MonoBehaviour:
@ -9009,10 +8993,10 @@ RectTransform:
- {fileID: 221364888} - {fileID: 221364888}
m_Father: {fileID: 703458665} m_Father: {fileID: 703458665}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 250, y: -281.7847}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 500, y: 59.081345}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1896563903 --- !u!222 &1896563903
CanvasRenderer: CanvasRenderer:
@ -9502,10 +9486,10 @@ RectTransform:
- {fileID: 411140635} - {fileID: 411140635}
m_Father: {fileID: 703458665} m_Father: {fileID: 703458665}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 250, y: -29.540672}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 500, y: 59.081345}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1971898521 --- !u!114 &1971898521
MonoBehaviour: MonoBehaviour:
@ -10093,10 +10077,10 @@ RectTransform:
m_Children: [] m_Children: []
m_Father: {fileID: 6747543} m_Father: {fileID: 6747543}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 700, y: -300}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 300, y: 200}
m_Pivot: {x: 0, y: 0.5} m_Pivot: {x: 0, y: 0.5}
--- !u!114 &2137991537 --- !u!114 &2137991537
MonoBehaviour: MonoBehaviour:

View File

@ -6137,23 +6137,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3} m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
texts: textList: {fileID: 11400000, guid: 5b22791c486a626428ab508347ebb36e, type: 2}
- Hideo Kojima is not executive director on this project.
- Medium-hot mustard > all
- Glaceon best eeveelution
- Made with lots of coffee
- Sell Lada, very little used, will be used very little
- It's not very cold at the moment
- 'If laziness were a sport, we would all be champions '
- Shinji Mikami has not approved this project (but we remain available)
- 'JRPG rules the world '
- Bravo les lesbiennes !
- 'Mer il est fou ! '
- Au revoir...
- '*Angry cat noise*'
- Nyaaaa ~
- Coded without JS (I think)
- I developed without counting
--- !u!1 &1850164816 --- !u!1 &1850164816
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7215,23 +7199,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3} m_Script: {fileID: 11500000, guid: 94922ac68f10744df9dab89b5202ac76, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
texts: textList: {fileID: 11400000, guid: 5b22791c486a626428ab508347ebb36e, type: 2}
- Hideo Kojima is not executive director on this project.
- Medium-hot mustard > all
- Glaceon best eeveelution
- Made with lots of coffee
- Sell Lada, very little used, will be used very little
- It's not very cold at the moment
- 'If laziness were a sport, we would all be champions '
- Shinji Mikami has not approved this project (but we remain available)
- 'JRPG rules the world '
- Bravo les lesbiennes !
- 'Mer il est fou ! '
- Au revoir...
- '*Angry cat noise*'
- Nyaaaa ~
- Coded without JS (I think)
- I developed without counting
--- !u!1 &2103733876 --- !u!1 &2103733876
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4ee411363b53cf844880900b487de82a, type: 3}
m_Name: FunnyTextList
m_EditorClassIdentifier:
funnyList:
- Hideo Kojima is not executive director on this project.
- Medium-hot mustard > all
- Glaceon best eeveelution
- Made with lots of coffee
- Sell Lada, very little used, will be used very little
- It's not very cold at the moment
- 'If laziness were a sport, we would all be champions '
- Shinji Mikami has not approved this project (but we remain available)
- 'JRPG rules the world '
- Bravo les lesbiennes !
- 'Mer il est fou ! '
- Au revoir...
- '*Angry cat noise*'
- Nyaaaa ~
- Coded without JS (I think)
- I developed without counting

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5b22791c486a626428ab508347ebb36e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -5,9 +5,9 @@
public class FunnyText : MonoBehaviour public class FunnyText : MonoBehaviour
{ {
public List<string> texts; public FunnyTextList textList;
private void OnEnable() private void OnEnable()
{ {
GetComponent<TextMeshProUGUI>().text = texts[Random.Range(0, texts.Count)]; GetComponent<TextMeshProUGUI>().text = textList.funnyList[Random.Range(0, textList.funnyList.Count)];
} }
} }

View File

@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "FunnyTextList", menuName = "ScriptableObjects/Funny Text List", order = 2)]
public class FunnyTextList : ScriptableObject
{
public List<string> funnyList = new List<string>();
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4ee411363b53cf844880900b487de82a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: