1
Fork 0
mirror of https://github.com/Steffo99/gravity-fusion.git synced 2024-10-16 07:17:29 +00:00

Many changes again

This commit is contained in:
Steffo 2019-10-06 17:44:41 +02:00
parent d2df82d736
commit 26961cf36a
26 changed files with 817 additions and 285 deletions

View file

@ -1,20 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BigBang : MonoBehaviour
{
public GameObject blackHolePrefab;
public GameObject particlePrefab;
public int particlesToSpawn;
void Start()
{
}
void Update()
{
}
}

View file

@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Disappear : MonoBehaviour
{
public float timeLeft;
protected Particle particle;
public float FractionLeft {
get {
return timeLeft / particle.Duration;
}
}
protected void Awake() {
particle = GetComponent<Particle>();
}
private void Start() {
ResetTimer();
}
public void ResetTimer() {
timeLeft = particle.Duration;
}
private void Update() {
timeLeft -= Time.deltaTime;
if(timeLeft < 0) {
Destroy(this.gameObject);
}
}
}

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 39e0b663ea04fd648950255e97005aa4
guid: 6d3f9558d29b4414a9c0661fe7b075a0
MonoImporter:
externalObjects: {}
serializedVersion: 2

View file

@ -7,30 +7,29 @@ public class Emitter : MonoBehaviour
{
public float forceBase;
public float forceVariance;
protected int emittedParticles;
public float emissionPeriod;
public int emissionQuantity;
public string particlePrefabName;
protected GameObject particlePrefab;
protected Particle particle;
protected void Awake() {
particle = GetComponent<Particle>();
particlePrefab = (GameObject)Resources.Load(particlePrefabName);
}
protected void Start() {
emittedParticles = 0;
Invoke("Emit", 0.5f);
Invoke("Emit", emissionPeriod);
}
protected void Emit() {
Invoke("Emit", 0.5f);
if(particle.Tier < 1) return;
GameObject newObject = Instantiate(particlePrefab, transform.position, Quaternion.identity);
Particle newParticle = newObject.GetComponent<Particle>();
newParticle.Tier = particle.Tier - 2;
Vector3 direction = new Vector3(Mathf.Cos(Mathf.PI * emittedParticles / 3), Mathf.Sin(Mathf.PI * emittedParticles / 3), 0).normalized;
float force = Mathf.Clamp(forceBase + ((Random.value - 0.5f) * forceVariance), 0f, float.PositiveInfinity);
newParticle.rigidbody.AddForce(direction * force);
Invoke("Emit", emissionPeriod);
if(particle.Tier < 2) return;
for(int i = 0; i < emissionQuantity; i++) {
GameObject newObject = Instantiate(particle.ParticlePrefab, transform.position, Quaternion.identity);
Particle newParticle = newObject.GetComponent<Particle>();
newParticle.Tier = particle.Tier - 2;
Vector3 direction = new Vector3(Mathf.Cos(Mathf.PI * i * 2 / emissionQuantity), Mathf.Sin(Mathf.PI * i / emissionQuantity), 0).normalized;
float force = Mathf.Clamp(forceBase + ((Random.value - 0.5f) * forceVariance), 0f, float.PositiveInfinity);
newParticle.rigidbody.AddForce(direction * force);
}
}
}

View file

@ -5,10 +5,40 @@ using UnityEngine.Animations;
public class GameController : MonoBehaviour
{
[Header("Constants")]
public float gravitationConstant = 2;
public int particlesToMerge = 5;
public int scaleMultiplier = 3;
public int particleDurationPerTier = 5;
[Header("Big Bang")]
public int bigBangParticles;
public GameObject blackHolePrefab;
[Header("Particles")]
public GameObject particlePrefab;
public Gradient[] tierGradients;
public RuntimeAnimatorController[] tierAnimation;
[Header("Upgrades")]
public float[] upgradePushForce;
public float[] upgradePushRadius;
public float[] upgradeParticleCount;
[Header("Bought Upgrades")]
public int levelPush = 0;
public int levelClick = 0;
[Header("References")]
public SpawnOnMouseClick spawner;
public PushOnMouseClick pusher;
public CameraPan panner;
public MusicManager musicManager;
protected void Awake() {
spawner = Camera.main.GetComponent<SpawnOnMouseClick>();
pusher = Camera.main.GetComponent<PushOnMouseClick>();
panner = Camera.main.GetComponent<CameraPan>();
musicManager = GetComponent<MusicManager>();
}
}

View file

@ -10,6 +10,8 @@ public class Hue : MonoBehaviour
protected Particle particle;
protected Material material;
protected Color color;
protected void Awake() {
particle = GetComponent<Particle>();
material = new Material(Shader.Find("Custom/HSVRangeShader"));
@ -21,20 +23,14 @@ public class Hue : MonoBehaviour
}
set {
_possibleColors = value;
Color = _possibleColors.Evaluate(Random.value);
color = _possibleColors.Evaluate(Random.value);
}
}
protected Color Color {
get {
Vector4 hsva = material.GetVector("_HSVAAdjust");
return Color.HSVToRGB(hsva.x, hsva.y, hsva.z);
}
set {
Vector4 hsva = new Vector4(0, 0, 0, 0);
Color.RGBToHSV(value, out hsva.x, out _, out _);
material.SetVector("_HSVAAdjust", hsva);
}
public void RefreshColor() {
Vector4 hsva = new Vector4(0, 0, particle.disappear.FractionLeft - 1, 0);
Color.RGBToHSV(color, out hsva.x, out _, out _);
material.SetVector("_HSVAAdjust", hsva);
}
protected void Start() {
@ -42,4 +38,8 @@ public class Hue : MonoBehaviour
particle.auraRenderer.material = material;
particle.detailsRenderer.material = material;
}
protected void Update() {
RefreshColor();
}
}

View file

@ -3,10 +3,6 @@ using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Rigidbody2D))]
[RequireComponent(typeof(Collider2D))]
[RequireComponent(typeof(Gravitation))]
[RequireComponent(typeof(Emitter))]
public class Particle : MonoBehaviour {
protected int _tier = 0;
@ -22,6 +18,7 @@ public class Particle : MonoBehaviour {
public SpriteRenderer mainRenderer;
public SpriteRenderer auraRenderer;
public SpriteRenderer detailsRenderer;
public Disappear disappear;
public int Tier {
get {
@ -29,9 +26,10 @@ public class Particle : MonoBehaviour {
}
set {
_tier = value;
Scale *= gameController.scaleMultiplier;
Scale = Mathf.Pow(gameController.scaleMultiplier, _tier);
animator.runtimeAnimatorController = gameController.tierAnimation[_tier];
hue.PossibleColors = gameController.tierGradients[_tier];
disappear.ResetTimer();
}
}
@ -46,7 +44,19 @@ public class Particle : MonoBehaviour {
public float Mass {
get {
return Mathf.Pow(gameController.particlesToMerge, Tier);
return Mathf.Pow(gameController.particlesToMerge + 1, Tier);
}
}
public float Duration {
get {
return gameController.particleDurationPerTier * (Tier + 1);
}
}
public GameObject ParticlePrefab {
get {
return gameController.particlePrefab;
}
}
@ -63,6 +73,7 @@ public class Particle : MonoBehaviour {
detailsRenderer = transform.Find("Details").GetComponent<SpriteRenderer>();
hue = GetComponent<Hue>();
animator = GetComponent<Animator>();
disappear = GetComponent<Disappear>();
}
protected void Start() {

View file

@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PushOnMouseClick : MonoBehaviour
{
[Header("Config")]
public int mouseButton;
public float pushForce;
public float pushRadius;
protected Vector3 GetWorldMousePosition() {
return Camera.main.ScreenToWorldPoint(Input.mousePosition);
}
void Update()
{
if(Input.GetMouseButton(mouseButton)) {
Vector3 mousePosition = GetWorldMousePosition();
Collider2D[] affected = Physics2D.OverlapCircleAll(mousePosition, pushRadius);
foreach(Collider2D collider in affected) {
float distance = Vector3.Distance(mousePosition, collider.transform.position);
Vector2 direction = (collider.transform.position - mousePosition).normalized;
collider.attachedRigidbody?.AddForce(direction * pushForce / Mathf.Pow(distance, 2));
}
}
}
}

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8cb7610d172100841907b194dece1565
guid: 9227c19eff39e704cba3b8e354506146
MonoImporter:
externalObjects: {}
serializedVersion: 2

View file

@ -1,34 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SlowlyDisappear : MonoBehaviour
{
public float disappearAfter;
public Gradient colorCurve;
protected float timeLeft;
protected SpriteRenderer sprite;
protected float FractionLeft {
get {
return timeLeft / disappearAfter;
}
}
private void Start() {
sprite = GetComponent<SpriteRenderer>();
timeLeft = disappearAfter;
}
private void Update() {
timeLeft -= Time.deltaTime;
if(sprite != null) {
sprite.color = colorCurve.Evaluate(FractionLeft);
}
if(timeLeft < 0) {
Destroy(this.gameObject);
}
}
}

View file

@ -5,8 +5,15 @@ using UnityEngine;
public class SpawnOnMouseClick : MonoBehaviour
{
[Header("Config")]
public GameObject prefabToSpawn;
public GameController gameController;
public int mouseButton;
public int spawnedTier;
public int spawnCount;
public float appliedForce;
protected void Awake() {
gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameController>();
}
protected Vector3 GetWorldMousePosition() {
return Camera.main.ScreenToWorldPoint(Input.mousePosition);
@ -16,7 +23,13 @@ public class SpawnOnMouseClick : MonoBehaviour
{
if(Input.GetMouseButtonDown(mouseButton)) {
Vector3 mousePosition = GetWorldMousePosition();
GameObject instance = Instantiate(prefabToSpawn, new Vector3(mousePosition.x, mousePosition.y, 0f), Quaternion.identity);
for(int i = 0; i < spawnCount; i++) {
GameObject particleObject = Instantiate(gameController.particlePrefab, new Vector3(mousePosition.x, mousePosition.y, 0f), Quaternion.identity);
Particle particle = particleObject.GetComponent<Particle>();
particle.Tier = spawnedTier;
Vector2 direction = new Vector2(Random.value - 0.5f, Random.value - 0.5f).normalized;
particle.rigidbody.AddForce(direction * appliedForce);
}
}
}
}

View file

@ -1,6 +1,7 @@
fileFormatVersion: 2
guid: faa399bc56a554c49a541f76ee3d451d
PrefabImporter:
guid: de8ebca9b50373849b55643860b11f99
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:

Binary file not shown.

View file

@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: 16bf2f8238537fa49abe10854fc7799a
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: F25 Bank Printer
fontNames:
- F25 Bank Printer
fallbackFontReferences:
- {fileID: 12800000, guid: 3aed7d1f53bc37942a3de9b7a7718b64, type: 3}
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View file

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 3aed7d1f53bc37942a3de9b7a7718b64
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: F25 Bank Printer
fontNames:
- F25 Bank Printer
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,71 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &1132876351337150268
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 5473375028011702754, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_Name
value: Particle
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalPosition.x
value: 383.1254
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalPosition.y
value: 141.16513
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5473375028011702783, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e73d8e05bd7498c4a80a63094f4594a8, type: 3}

View file

@ -15,7 +15,7 @@ GameObject:
- component: {fileID: 2084275844800580025}
- component: {fileID: 3271020097140099258}
m_Layer: 0
m_Name: Protostar
m_Name: BlackHole
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -30,8 +30,9 @@ Transform:
m_GameObject: {fileID: 2084275844800580026}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.5, y: 1.5, z: 1}
m_Children: []
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1352545097575099099}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -71,11 +72,11 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingLayerID: -575192793
m_SortingLayer: 1
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: d8cf31929ca287542bdc219ec19f002e, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 0.15686275}
m_Sprite: {fileID: 21300000, guid: a5ce7744ee4134e4ca55ed488cf6329f, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
@ -97,7 +98,7 @@ Rigidbody2D:
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 10
m_Mass: 7
m_LinearDrag: 0
m_AngularDrag: 0.05
m_GravityScale: 0
@ -148,7 +149,84 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2f86d0ffd697a6046a85ea2885566da9, type: 3}
m_Name:
m_EditorClassIdentifier:
absorbedParticles: 0
absorbedMass: 0
scaleOnMass: 1
syncMass: 1
--- !u!1 &9196047638329762968
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1352545097575099099}
- component: {fileID: 3711945108754635774}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1352545097575099099
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9196047638329762968}
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_Children: []
m_Father: {fileID: 2084275844800580021}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &3711945108754635774
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9196047638329762968}
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_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: -2048492593
m_SortingLayer: -1
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: bec3e76d5f137cb4ead4f3842b8db978, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 2, y: 2}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0

View file

@ -46,6 +46,9 @@ MonoBehaviour:
gravitationConstant: 2
particlesToMerge: 5
scaleMultiplier: 3
particleDurationPerTier: 15
particlePrefab: {fileID: 5473375028011702754, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
tierGradients:
- serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}

View file

@ -13,6 +13,7 @@ GameObject:
- component: {fileID: 9221969453073420045}
- component: {fileID: 1504932582}
- component: {fileID: 1504932583}
- component: {fileID: 6700387586635078816}
- component: {fileID: 1504932587}
m_Layer: 0
m_Name: MainCamera
@ -98,9 +99,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6c6157b8c0c98584db4becc892a8f6fd, type: 3}
m_Name:
m_EditorClassIdentifier:
prefabToSpawn: {fileID: 5473375028011702754, guid: e73d8e05bd7498c4a80a63094f4594a8,
type: 3}
gameController: {fileID: 0}
mouseButton: 0
spawnedTier: 0
spawnCount: 1
appliedForce: 0.1
--- !u!114 &1504932583
MonoBehaviour:
m_ObjectHideFlags: 0
@ -115,6 +118,22 @@ MonoBehaviour:
m_EditorClassIdentifier:
zoomMultiplier: 3
zoomAxisName: MouseWheel
--- !u!114 &6700387586635078816
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9221969453073420044}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9227c19eff39e704cba3b8e354506146, type: 3}
m_Name:
m_EditorClassIdentifier:
gameController: {fileID: 0}
mouseButton: 1
pushForce: 0
pushRadius: 0
--- !u!114 &1504932587
MonoBehaviour:
m_ObjectHideFlags: 0
@ -127,4 +146,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: faf7dfc2fa2059f4a96e4a134b4ef2ab, type: 3}
m_Name:
m_EditorClassIdentifier:
axisName: MouseLeft
axisName: MouseMiddle

View file

@ -93,11 +93,12 @@ GameObject:
- component: {fileID: 1061936008197383768}
- component: {fileID: 5473375028011702782}
- component: {fileID: 5473375028011702753}
- component: {fileID: 2708280373150727870}
- component: {fileID: 5473375028011702752}
- component: {fileID: 5473375028011702755}
- component: {fileID: 2183820810783596218}
- component: {fileID: 6410014372807664776}
- component: {fileID: 2708280373150727870}
- component: {fileID: 8346599265516913425}
m_Layer: 0
m_Name: Particle
m_TagString: Untagged
@ -146,6 +147,7 @@ MonoBehaviour:
mainRenderer: {fileID: 0}
auraRenderer: {fileID: 0}
detailsRenderer: {fileID: 0}
disappear: {fileID: 0}
--- !u!50 &5473375028011702782
Rigidbody2D:
serializedVersion: 4
@ -183,6 +185,25 @@ CircleCollider2D:
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 0.5
--- !u!95 &2708280373150727870
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5473375028011702754}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 0}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!212 &5473375028011702752
SpriteRenderer:
m_ObjectHideFlags: 0
@ -260,8 +281,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
forceBase: 1000
forceVariance: 50
particlePrefabName: Particle
forceVariance: 250
emissionPeriod: 2
emissionQuantity: 2
--- !u!114 &6410014372807664776
MonoBehaviour:
m_ObjectHideFlags: 0
@ -274,25 +296,19 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 850e317a8220a1d40a7ecea848a3f0ea, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!95 &2708280373150727870
Animator:
serializedVersion: 3
--- !u!114 &8346599265516913425
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5473375028011702754}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 0}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6d3f9558d29b4414a9c0661fe7b075a0, type: 3}
m_Name:
m_EditorClassIdentifier:
timeLeft: 0
--- !u!1 &7524624946521742832
GameObject:
m_ObjectHideFlags: 0

View file

@ -201,8 +201,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 14.99}
m_SizeDelta: {x: 98.8, y: 14.99}
m_AnchoredPosition: {x: 3.7, y: 15}
m_SizeDelta: {x: 95.2, y: 15}
m_Pivot: {x: 0, y: 1}
--- !u!114 &241099029
MonoBehaviour:
@ -223,13 +223,13 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Font: {fileID: 12800000, guid: 16bf2f8238537fa49abe10854fc7799a, type: 3}
m_FontSize: 12
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 0
m_Alignment: 6
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
@ -302,7 +302,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_Font: {fileID: 12800000, guid: 16bf2f8238537fa49abe10854fc7799a, type: 3}
m_FontSize: 32
m_FontStyle: 0
m_BestFit: 0
@ -314,7 +314,9 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: MASS
m_Text: '50
'
--- !u!222 &306773065
CanvasRenderer:
m_ObjectHideFlags: 0
@ -403,36 +405,6 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2084275844800580021, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: m_LocalScale.x
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2084275844800580021, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: m_LocalScale.y
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2084275844800580024, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: m_Mass
value: 7
objectReference: {fileID: 0}
- target: {fileID: 2084275844800580023, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: m_Radius
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3271020097140099258, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: absorbedParticles
value: 7
objectReference: {fileID: 0}
- target: {fileID: 3271020097140099258, guid: d2ff0823532914e4a8f5ecd0efc2a146,
type: 3}
propertyPath: absorbedMass
value: 7
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d2ff0823532914e4a8f5ecd0efc2a146, type: 3}
--- !u!1 &863596081
@ -615,68 +587,43 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.size
propertyPath: upgradeParticleCount.Array.size
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: upgradePushRadius.Array.size
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: upgradePushForce.Array.size
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: upgradeParticleCount.Array.data[0]
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: upgradeParticleCount.Array.data[1]
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierMainSprites.Array.size
value: 2
propertyPath: upgradeParticleCount.Array.data[2]
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierAuraSprites.Array.size
value: 2
propertyPath: upgradeParticleCount.Array.data[3]
value: 7
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierDetailsSprites.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: gravitationConstant
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[0].ctime1
value: 65535
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[0].atime1
value: 65535
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[0].m_NumColorKeys
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[0].m_NumAlphaKeys
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[1].ctime1
value: 65535
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[1].atime1
value: 65535
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[1].m_NumColorKeys
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4937878819460165300, guid: bf08d766b6e86cf4a8773489143ab2d5,
type: 3}
propertyPath: tierGradients.Array.data[1].m_NumAlphaKeys
value: 2
propertyPath: upgradeParticleCount.Array.data[4]
value: 10
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: bf08d766b6e86cf4a8773489143ab2d5, type: 3}
@ -747,9 +694,5 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1504932587, guid: 6baf9ec6ad712d940a83a3bf6ae3e6b1, type: 3}
propertyPath: axisName
value: MouseMiddle
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6baf9ec6ad712d940a83a3bf6ae3e6b1, type: 3}

View file

@ -0,0 +1,91 @@
fileFormatVersion: 2
guid: fcd64b8625b1bf84b95c05f410edd9f9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,115 @@
fileFormatVersion: 2
guid: a5ce7744ee4134e4ca55ed488cf6329f
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 1500
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,115 @@
fileFormatVersion: 2
guid: a3bdf85db705f1349b6d95e661c6357d
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 0
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 200
spriteBorder: {x: 92, y: 12, z: 92, w: 12}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,115 @@
fileFormatVersion: 2
guid: bec3e76d5f137cb4ead4f3842b8db978
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 1500
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant: