This commit is contained in:
fu-majime 2024-03-30 21:49:41 +09:00
parent f27e77af52
commit 3ec1ceaa1b
2 changed files with 14 additions and 3 deletions

View file

@ -279,7 +279,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!4 &959002872646868649 --- !u!4 &959002872646868649
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -337,7 +337,7 @@ SpriteRenderer:
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: -40 m_SortingOrder: -40
m_Sprite: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6, type: 3} m_Sprite: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6, type: 3}
m_Color: {r: 0, g: 0, b: 0, a: 0} m_Color: {r: 0, g: 0, b: 0, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0
m_DrawMode: 0 m_DrawMode: 0
@ -978,6 +978,7 @@ MonoBehaviour:
- {fileID: 6904074179371447724} - {fileID: 6904074179371447724}
impactMaterial: {fileID: 2100000, guid: ab21c8af63622c646a685aa8b7c3c9a4, type: 2} impactMaterial: {fileID: 2100000, guid: ab21c8af63622c646a685aa8b7c3c9a4, type: 2}
conveyerBelt: {fileID: 9075535989594452730} conveyerBelt: {fileID: 9075535989594452730}
blackout: {fileID: 3757292687665858054}
--- !u!1 &7022196375650281210 --- !u!1 &7022196375650281210
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View file

@ -56,6 +56,11 @@ namespace HeavenStudio.Games.Loaders
}, },
defaultLength = 6f, defaultLength = 6f,
}, },
new GameAction("blackout", "Blackout")
{
function = delegate { Fillbots.instance.Blackout();},
defaultLength = 0.5f,
},
new GameAction("background", "Background Appearance") new GameAction("background", "Background Appearance")
{ {
function = delegate { function = delegate {
@ -112,6 +117,7 @@ namespace HeavenStudio.Games
[SerializeField] private SpriteRenderer[] metersFuel; [SerializeField] private SpriteRenderer[] metersFuel;
[SerializeField] private Material impactMaterial; [SerializeField] private Material impactMaterial;
[SerializeField] private Animator conveyerBelt; [SerializeField] private Animator conveyerBelt;
[SerializeField] private GameObject blackout;
public static Fillbots instance; public static Fillbots instance;
@ -296,6 +302,11 @@ namespace HeavenStudio.Games
toggle ^= 1; toggle ^= 1;
} }
} }
public void Blackout()
{
blackout.SetActive(!blackout.activeSelf);
}
public void BackgroundColorSet(Color impact, Color meter1, Color meter2, Color meter3, Color meter4, Color meter5, Color meter6) public void BackgroundColorSet(Color impact, Color meter1, Color meter2, Color meter3, Color meter4, Color meter5, Color meter6)
{ {
@ -306,7 +317,6 @@ namespace HeavenStudio.Games
{ {
metersFuel[i].color = colors[i]; metersFuel[i].color = colors[i];
} }
} }
} }
} }