-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flag Setting Event Component, Flag Check, Preview of Next Waves
- Loading branch information
1 parent
807fb97
commit aa50045
Showing
38 changed files
with
608 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class IncomingPreview : MonoBehaviour | ||
{ | ||
public Transform PreviewRowParent; | ||
public IncomingPreviewRow RowPF; | ||
|
||
public void SetFromRemaining(List<EncounterWave> WavesRemaining) | ||
{ | ||
for (int ii = 0; ii < PreviewRowParent.childCount; ii++) | ||
{ | ||
Destroy(PreviewRowParent.GetChild(ii).gameObject); | ||
} | ||
|
||
foreach (EncounterWave wave in WavesRemaining) | ||
{ | ||
IncomingPreviewRow piece = Instantiate(RowPF, PreviewRowParent); | ||
piece.SetFromRow(wave); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
|
||
public class IncomingPreviewPiece : MonoBehaviour | ||
{ | ||
public Image Graphic; | ||
public void SetFromEncounterPhase(FoeEncounterPhase phase) | ||
{ | ||
Graphic.sprite = phase.EncounteredFoe.AttackPhases[phase.FoeStartingPhase].AppearenceInPhase; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/DCJam2022/EncounterBattle/IncomingPreviewPiece.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
113 changes: 113 additions & 0 deletions
113
Assets/DCJam2022/EncounterBattle/IncomingPreviewPiece.prefab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!1 &7831970288420196701 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 5268587258481041626} | ||
- component: {fileID: 6974771781273813318} | ||
- component: {fileID: 848225577996963513} | ||
- component: {fileID: 8319950586273004899} | ||
- component: {fileID: 5527548877253805060} | ||
m_Layer: 10 | ||
m_Name: IncomingPreviewPiece | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!224 &5268587258481041626 | ||
RectTransform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 7831970288420196701} | ||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
m_LocalPosition: {x: 0, y: 0, z: 0} | ||
m_LocalScale: {x: 1, y: 1, z: 1} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: [] | ||
m_Father: {fileID: 0} | ||
m_RootOrder: 0 | ||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
m_AnchorMin: {x: 0, y: 0} | ||
m_AnchorMax: {x: 0, y: 0} | ||
m_AnchoredPosition: {x: 0, y: 0} | ||
m_SizeDelta: {x: 40, y: 40} | ||
m_Pivot: {x: 0.5, y: 0.5} | ||
--- !u!114 &6974771781273813318 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 7831970288420196701} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 0ae5384db4eb4ce44a062759605ec690, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
Graphic: {fileID: 8319950586273004899} | ||
--- !u!222 &848225577996963513 | ||
CanvasRenderer: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 7831970288420196701} | ||
m_CullTransparentMesh: 1 | ||
--- !u!114 &8319950586273004899 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 7831970288420196701} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
m_Material: {fileID: 0} | ||
m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
m_RaycastTarget: 1 | ||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} | ||
m_Maskable: 1 | ||
m_OnCullStateChanged: | ||
m_PersistentCalls: | ||
m_Calls: [] | ||
m_Sprite: {fileID: 0} | ||
m_Type: 0 | ||
m_PreserveAspect: 0 | ||
m_FillCenter: 1 | ||
m_FillMethod: 4 | ||
m_FillAmount: 1 | ||
m_FillClockwise: 1 | ||
m_FillOrigin: 0 | ||
m_UseSpriteMesh: 0 | ||
m_PixelsPerUnitMultiplier: 1 | ||
--- !u!114 &5527548877253805060 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 7831970288420196701} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
m_IgnoreLayout: 0 | ||
m_MinWidth: -1 | ||
m_MinHeight: -1 | ||
m_PreferredWidth: 40 | ||
m_PreferredHeight: 40 | ||
m_FlexibleWidth: -1 | ||
m_FlexibleHeight: -1 | ||
m_LayoutPriority: 1 |
7 changes: 7 additions & 0 deletions
7
Assets/DCJam2022/EncounterBattle/IncomingPreviewPiece.prefab.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class IncomingPreviewRow : MonoBehaviour | ||
{ | ||
public IncomingPreviewPiece PreviewPiecePF; | ||
|
||
public Transform PieceParent; | ||
|
||
public void SetFromRow(EncounterWave fromWave) | ||
{ | ||
for (int ii = 0; ii < PieceParent.childCount; ii++) | ||
{ | ||
Destroy(PieceParent.GetChild(ii).gameObject); | ||
} | ||
|
||
foreach (FoeEncounterPhase encounterPhase in fromWave.FoesInWave) | ||
{ | ||
IncomingPreviewPiece piece = Instantiate(PreviewPiecePF, PieceParent); | ||
piece.SetFromEncounterPhase(encounterPhase); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/DCJam2022/EncounterBattle/IncomingPreviewRow.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.