mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 11:17:38 +02:00
Added Cooking Pot, Alien, and Pot hit stars
This commit is contained in:
@ -6726,6 +6726,7 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 2894176741642927925}
|
- {fileID: 2894176741642927925}
|
||||||
|
- {fileID: 1457329406503294050}
|
||||||
m_Father: {fileID: 7248900332475218834}
|
m_Father: {fileID: 7248900332475218834}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@ -7030,6 +7031,7 @@ MonoBehaviour:
|
|||||||
Holder: {fileID: 7248900331917783119}
|
Holder: {fileID: 7248900331917783119}
|
||||||
Sprite: {fileID: 7248900332269585492}
|
Sprite: {fileID: 7248900332269585492}
|
||||||
BulbLightSprite: {fileID: 8800416197462662414}
|
BulbLightSprite: {fileID: 8800416197462662414}
|
||||||
|
CookingPotLid: {fileID: 8704477285803082347}
|
||||||
Shadow: {fileID: 7248900331919671867}
|
Shadow: {fileID: 7248900331919671867}
|
||||||
isThrown: 0
|
isThrown: 0
|
||||||
isHit: 0
|
isHit: 0
|
||||||
@ -12509,7 +12511,7 @@ ParticleSystem:
|
|||||||
startLifetime:
|
startLifetime:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
minMaxState: 0
|
minMaxState: 0
|
||||||
scalar: 0.22
|
scalar: 0.33
|
||||||
minScalar: 5
|
minScalar: 5
|
||||||
maxCurve:
|
maxCurve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -14417,7 +14419,7 @@ ParticleSystem:
|
|||||||
radial:
|
radial:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
minMaxState: 0
|
minMaxState: 0
|
||||||
scalar: 10.21
|
scalar: 15
|
||||||
minScalar: 0
|
minScalar: 0
|
||||||
maxCurve:
|
maxCurve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -14470,7 +14472,7 @@ ParticleSystem:
|
|||||||
speedModifier:
|
speedModifier:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
minMaxState: 0
|
minMaxState: 0
|
||||||
scalar: 1.83
|
scalar: 0.8
|
||||||
minScalar: 1
|
minScalar: 1
|
||||||
maxCurve:
|
maxCurve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -17796,12 +17798,17 @@ MonoBehaviour:
|
|||||||
- {fileID: 8671423413994339737, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: 8671423413994339737, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: -6341196331951941137, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: -6341196331951941137, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: -6283416824598814145, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: -6283416824598814145, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
|
- {fileID: 6243727673011286339, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
|
- {fileID: -8767211005568948338, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
BarrelSprites:
|
BarrelSprites:
|
||||||
- {fileID: 6524922379630696755, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: 6524922379630696755, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: 1156572009758090512, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: 1156572009758090512, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: -7998309181045564909, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: -7998309181045564909, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: -7906004722935515527, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: -7906004722935515527, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
- {fileID: 5805539206011318834, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
- {fileID: 5805539206011318834, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
|
CookingPotSprites:
|
||||||
|
- {fileID: 6243727673011286339, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
|
- {fileID: 561377664857987667, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
BGSprites:
|
BGSprites:
|
||||||
- Sprites:
|
- Sprites:
|
||||||
- {fileID: 21300000, guid: 72431c7c58f54e848bcb7527635bb72b, type: 3}
|
- {fileID: 21300000, guid: 72431c7c58f54e848bcb7527635bb72b, type: 3}
|
||||||
@ -17816,6 +17823,7 @@ MonoBehaviour:
|
|||||||
BGColor: {r: 0.94117653, g: 0.91372555, b: 0.43921572, a: 1}
|
BGColor: {r: 0.94117653, g: 0.91372555, b: 0.43921572, a: 1}
|
||||||
Shadow: 0
|
Shadow: 0
|
||||||
ShadowColor: {r: 0, g: 0, b: 0, a: 0}
|
ShadowColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
potHitEffect: {fileID: 7248900332593533644}
|
||||||
comboRef: {fileID: 1174851578296134715}
|
comboRef: {fileID: 1174851578296134715}
|
||||||
HIT3Ref: {fileID: 6398113137460299953}
|
HIT3Ref: {fileID: 6398113137460299953}
|
||||||
Numbers:
|
Numbers:
|
||||||
@ -18191,6 +18199,88 @@ Transform:
|
|||||||
m_Father: {fileID: 8457699647532782750}
|
m_Father: {fileID: 8457699647532782750}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8704477285803082347
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1457329406503294050}
|
||||||
|
- component: {fileID: 2851794217705847224}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: CookingPotLid
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!4 &1457329406503294050
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8704477285803082347}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.07, y: 0.52, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 7248900332269585493}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!212 &2851794217705847224
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8704477285803082347}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 0
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 0
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 60
|
||||||
|
m_Sprite: {fileID: 561377664857987667, guid: 868cd67f05ca7c646bae00fcc2ba7eaa, type: 3}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_FlipX: 0
|
||||||
|
m_FlipY: 0
|
||||||
|
m_DrawMode: 0
|
||||||
|
m_Size: {x: 1.9444444, y: 1.9444444}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
--- !u!1 &8746018100916256658
|
--- !u!1 &8746018100916256658
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -218,6 +218,15 @@ TextureImporter:
|
|||||||
- first:
|
- first:
|
||||||
213: 756708653002075470
|
213: 756708653002075470
|
||||||
second: karateman_combo_crouch_toIdle_leg
|
second: karateman_combo_crouch_toIdle_leg
|
||||||
|
- first:
|
||||||
|
213: 6243727673011286339
|
||||||
|
second: karateman_cookingpot
|
||||||
|
- first:
|
||||||
|
213: 561377664857987667
|
||||||
|
second: karateman_cookingpot_lid
|
||||||
|
- first:
|
||||||
|
213: -8767211005568948338
|
||||||
|
second: karateman_alien
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 11
|
serializedVersion: 11
|
||||||
mipmaps:
|
mipmaps:
|
||||||
@ -1872,6 +1881,69 @@ TextureImporter:
|
|||||||
indices:
|
indices:
|
||||||
edges: []
|
edges: []
|
||||||
weights: []
|
weights: []
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: karateman_cookingpot
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 3502
|
||||||
|
y: 1466
|
||||||
|
width: 294
|
||||||
|
height: 155
|
||||||
|
alignment: 9
|
||||||
|
pivot: {x: 0.48875457, y: 0.6137561}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: 0
|
||||||
|
bones: []
|
||||||
|
spriteID: 3413d18ec3d26a650800000000000000
|
||||||
|
internalID: 6243727673011286339
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: karateman_cookingpot_lid
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 3520
|
||||||
|
y: 1752
|
||||||
|
width: 257
|
||||||
|
height: 121
|
||||||
|
alignment: 9
|
||||||
|
pivot: {x: 0.4871356, y: 0.34517047}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: 0
|
||||||
|
bones: []
|
||||||
|
spriteID: 35ad2ba030a6ac700800000000000000
|
||||||
|
internalID: 561377664857987667
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: karateman_alien
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 3478
|
||||||
|
y: 1114
|
||||||
|
width: 276
|
||||||
|
height: 256
|
||||||
|
alignment: 9
|
||||||
|
pivot: {x: 0.5005042, y: 0.48580885}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: 0
|
||||||
|
bones: []
|
||||||
|
spriteID: e87ea268a0c945680800000000000000
|
||||||
|
internalID: -8767211005568948338
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
outline: []
|
outline: []
|
||||||
physicsShape: []
|
physicsShape: []
|
||||||
bones: []
|
bones: []
|
||||||
|
53
Assets/Scripts/Games/KarateMan/CookingPotDestroyEffect.cs
Normal file
53
Assets/Scripts/Games/KarateMan/CookingPotDestroyEffect.cs
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
using DG.Tweening;
|
||||||
|
|
||||||
|
namespace RhythmHeavenMania.Games.KarateMan
|
||||||
|
{
|
||||||
|
// Physics in Rhythm Heaven Mania? nah im just fuckin lazy
|
||||||
|
public class CookingPotDestroyEffect : MonoBehaviour
|
||||||
|
{
|
||||||
|
public SpriteRenderer SpriteRenderer;
|
||||||
|
public int spriteIndex;
|
||||||
|
public int index;
|
||||||
|
|
||||||
|
private float rotationSpeed;
|
||||||
|
|
||||||
|
public GameObject pot;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
SpriteRenderer sr = gameObject.AddComponent<SpriteRenderer>();
|
||||||
|
sr.sprite = KarateMan.instance.CookingPotSprites[1];
|
||||||
|
|
||||||
|
Rigidbody2D rb2d = gameObject.AddComponent<Rigidbody2D>();
|
||||||
|
rb2d.gravityScale = 5;
|
||||||
|
rb2d.collisionDetectionMode = CollisionDetectionMode2D.Continuous;
|
||||||
|
|
||||||
|
rb2d.AddForce(Vector3.up * Random.Range(875, 925));
|
||||||
|
|
||||||
|
rotationSpeed = Random.Range(100, 200);
|
||||||
|
|
||||||
|
PhysicsMaterial2D mat = new PhysicsMaterial2D();
|
||||||
|
mat.bounciness = 0;
|
||||||
|
|
||||||
|
StartCoroutine(FadeOut());
|
||||||
|
|
||||||
|
gameObject.name = "cookingpot_lid";
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
transform.eulerAngles -= new Vector3(0, 0, rotationSpeed * Time.deltaTime);
|
||||||
|
transform.position = new Vector3(pot.transform.position.x, transform.position.y, transform.position.z);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator FadeOut()
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(Conductor.instance.secPerBeat * 3);
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 523d89bc8ebbac84dbe347ffa8fb0c04
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -14,7 +14,9 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
Pot = 0,
|
Pot = 0,
|
||||||
Rock = 2,
|
Rock = 2,
|
||||||
Ball = 3,
|
Ball = 3,
|
||||||
TacoBell = 6
|
CookingPot = 7,
|
||||||
|
Alien = 8,
|
||||||
|
TacoBell = 6,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum LightBulbType
|
public enum LightBulbType
|
||||||
@ -65,6 +67,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
|
|
||||||
public Sprite[] ObjectSprites;
|
public Sprite[] ObjectSprites;
|
||||||
public Sprite[] BarrelSprites;
|
public Sprite[] BarrelSprites;
|
||||||
|
public Sprite[] CookingPotSprites;
|
||||||
|
|
||||||
public List<BGSpriteC> BGSprites;
|
public List<BGSpriteC> BGSprites;
|
||||||
public SpriteRenderer BGSprite;
|
public SpriteRenderer BGSprite;
|
||||||
@ -84,6 +87,8 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
|
|
||||||
private float bgBeat;
|
private float bgBeat;
|
||||||
|
|
||||||
|
public ParticleSystem potHitEffect;
|
||||||
|
|
||||||
public GameObject comboRef;
|
public GameObject comboRef;
|
||||||
|
|
||||||
public GameObject HIT3Ref;
|
public GameObject HIT3Ref;
|
||||||
@ -210,9 +215,26 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
outSnd = "karateman/objectOut";
|
if (Starpelly.Mathp.GetDecimalFromFloat(beat) == 0f)
|
||||||
|
outSnd = "karateman/objectOut";
|
||||||
|
else
|
||||||
|
outSnd = "karateman/offbeatObjectOut";
|
||||||
p.hitSnd = "karateman/tacobell";
|
p.hitSnd = "karateman/tacobell";
|
||||||
break;
|
break;
|
||||||
|
case 7:
|
||||||
|
if (Starpelly.Mathp.GetDecimalFromFloat(beat) == 0f)
|
||||||
|
outSnd = "karateman/objectOut";
|
||||||
|
else
|
||||||
|
outSnd = "karateman/offbeatObjectOut";
|
||||||
|
p.hitSnd = "karateman/cookingPot";
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
if (Starpelly.Mathp.GetDecimalFromFloat(beat) == 0f)
|
||||||
|
outSnd = "karateman/objectOut";
|
||||||
|
else
|
||||||
|
outSnd = "karateman/offbeatObjectOut";
|
||||||
|
p.hitSnd = "karateman/alienHit";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.endShadowThrowPos = new Vector2(-1.036f, -2.822f);
|
p.endShadowThrowPos = new Vector2(-1.036f, -2.822f);
|
||||||
|
@ -16,6 +16,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
private GameObject newHolder;
|
private GameObject newHolder;
|
||||||
public GameObject Sprite;
|
public GameObject Sprite;
|
||||||
public GameObject BulbLightSprite;
|
public GameObject BulbLightSprite;
|
||||||
|
public GameObject CookingPotLid;
|
||||||
private SpriteRenderer spriteComp;
|
private SpriteRenderer spriteComp;
|
||||||
public GameObject Shadow;
|
public GameObject Shadow;
|
||||||
private SpriteRenderer shadowSpriteComp;
|
private SpriteRenderer shadowSpriteComp;
|
||||||
@ -70,6 +71,9 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
else
|
else
|
||||||
hitLength = 14f;
|
hitLength = 14f;
|
||||||
|
|
||||||
|
if (type == 7)
|
||||||
|
CookingPotLid.SetActive(true);
|
||||||
|
|
||||||
/*if (combo)
|
/*if (combo)
|
||||||
{
|
{
|
||||||
if (comboIndex == 0)
|
if (comboIndex == 0)
|
||||||
@ -266,7 +270,7 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
// HitParticle.Play();
|
KarateMan.instance.potHitEffect.Play();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
GameObject bulbHit = Instantiate(KarateJoe.instance.BulbHit);
|
GameObject bulbHit = Instantiate(KarateJoe.instance.BulbHit);
|
||||||
@ -275,11 +279,16 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
Destroy(bulbHit, 0.7f);
|
Destroy(bulbHit, 0.7f);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// RockParticle.Play();
|
// TODO: Rock destroy particle effect
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
BarrelDestroy(false);
|
BarrelDestroy(false);
|
||||||
break;
|
break;
|
||||||
|
case 7:
|
||||||
|
// TODO: Rock destroy particle effect
|
||||||
|
CookingPotLid.SetActive(false);
|
||||||
|
CookingPotDestroy();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!kick)
|
if (!kick)
|
||||||
@ -327,6 +336,17 @@ namespace RhythmHeavenMania.Games.KarateMan
|
|||||||
Holder.transform.parent = newHolder.transform;
|
Holder.transform.parent = newHolder.transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void CookingPotDestroy()
|
||||||
|
{
|
||||||
|
GameObject lid = new GameObject();
|
||||||
|
lid.transform.localPosition = Holder.transform.localPosition;
|
||||||
|
lid.transform.parent = transform.parent;
|
||||||
|
lid.transform.localScale = Holder.transform.localScale;
|
||||||
|
|
||||||
|
CookingPotDestroyEffect cpde = lid.AddComponent<CookingPotDestroyEffect>();
|
||||||
|
cpde.pot = Sprite;
|
||||||
|
}
|
||||||
|
|
||||||
public void BarrelDestroy(bool combo)
|
public void BarrelDestroy(bool combo)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
|
Reference in New Issue
Block a user