Balloons have random positioning now
This commit is contained in:
parent
06afe43cef
commit
1368035d81
|
|
@ -24,7 +24,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 202270967205101524}
|
m_GameObject: {fileID: 202270967205101524}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.18, y: -0.7, z: 0}
|
m_LocalPosition: {x: -6.6, y: -0.7, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
@ -296,7 +296,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1599624797399516083}
|
m_GameObject: {fileID: 1599624797399516083}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.45, y: -0.84, z: 0}
|
m_LocalPosition: {x: -6.6, y: -0.84, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
@ -328,7 +328,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1625193486070694595}
|
m_GameObject: {fileID: 1625193486070694595}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.68, y: -0.56, z: 0}
|
m_LocalPosition: {x: -6.6, y: -0.56, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
@ -767,7 +767,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 4465275889429203320}
|
m_GameObject: {fileID: 4465275889429203320}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.13, y: -1.26, z: 0}
|
m_LocalPosition: {x: -6.6, y: -1.26, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
@ -1011,7 +1011,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5930070133449403727}
|
m_GameObject: {fileID: 5930070133449403727}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.05, y: -0.98, z: 0}
|
m_LocalPosition: {x: -6.6, y: -0.98, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
@ -1467,7 +1467,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 8467067257209797344}
|
m_GameObject: {fileID: 8467067257209797344}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -6.32, y: -1.12, z: 0}
|
m_LocalPosition: {x: -6.6, y: -1.12, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
private Animator anim;
|
private Animator anim;
|
||||||
private float fallStartY;
|
private float fallStartY;
|
||||||
private double playYanFallBeat;
|
private double playYanFallBeat;
|
||||||
|
[SerializeField] private float randomMinBalloonX = -0.45f;
|
||||||
|
[SerializeField] private float randomMaxBalloonX = 0.45f;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
|
@ -36,6 +38,8 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
foreach (var balloon in balloons)
|
foreach (var balloon in balloons)
|
||||||
{
|
{
|
||||||
balloon.Play("Idle", 0, UnityEngine.Random.Range(0f, 1f));
|
balloon.Play("Idle", 0, UnityEngine.Random.Range(0f, 1f));
|
||||||
|
Transform balloonTrans = balloon.transform.parent;
|
||||||
|
balloonTrans.localPosition = new Vector3(balloonTrans.localPosition.x + UnityEngine.Random.Range(randomMinBalloonX, randomMaxBalloonX), balloonTrans.localPosition.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue