|
|
|
@ -33,46 +33,6 @@ public class DebugUI : MonoBehaviour |
|
|
|
[Range(0, 5)] |
|
|
|
[Range(0, 5)] |
|
|
|
public int delay_sec = 2; |
|
|
|
public int delay_sec = 2; |
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(1, 10)] |
|
|
|
|
|
|
|
public int vfx_lifetime = 5; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(10000, 60000)] |
|
|
|
|
|
|
|
public int vfx_ground_ice_spawn_rate = 30000; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(1000, 10000)] |
|
|
|
|
|
|
|
public int vfx_ground_flake_spawn_rate = 5000; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(100, 3000)] |
|
|
|
|
|
|
|
public int vfx_flying_flake_spawn_rate = 1000; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0.1f, 0.8f)] |
|
|
|
|
|
|
|
public float vfx_min_frost_size = 0.3f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0.3f, 1f)] |
|
|
|
|
|
|
|
public float vfx_max_frost_size = 0.5f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0.01f, 0.5f)] |
|
|
|
|
|
|
|
public float vfx_min_spike_size = 0.1f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0.1f, 1f)] |
|
|
|
|
|
|
|
public float vfx_max_spike_size = 0.3f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0f, 0.1f)] |
|
|
|
|
|
|
|
public float vfx_min_flake_size = 0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Config] |
|
|
|
|
|
|
|
[Range(0.05f, 0.3f)] |
|
|
|
|
|
|
|
public float vfx_max_flake_size = 0.1f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
float lerp_val; |
|
|
|
float lerp_val; |
|
|
|
Vector3 final_pos; |
|
|
|
Vector3 final_pos; |
|
|
|
bool showObject; |
|
|
|
bool showObject; |
|
|
|
@ -106,8 +66,6 @@ public class DebugUI : MonoBehaviour |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
updateVFX(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Input.GetKeyDown(KeyCode.F1)) |
|
|
|
if (Input.GetKeyDown(KeyCode.F1)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
debugMode = !debugMode; |
|
|
|
debugMode = !debugMode; |
|
|
|
@ -216,18 +174,4 @@ public class DebugUI : MonoBehaviour |
|
|
|
bool _stat = button.GetComponentInParent<Button>().interactable; |
|
|
|
bool _stat = button.GetComponentInParent<Button>().interactable; |
|
|
|
button.GetComponentInParent<Button>().interactable = !_stat; |
|
|
|
button.GetComponentInParent<Button>().interactable = !_stat; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void updateVFX() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
vfx.SetInt("lifetime", vfx_lifetime); |
|
|
|
|
|
|
|
vfx.SetInt("ground_ice_spawn_rate", vfx_ground_ice_spawn_rate); |
|
|
|
|
|
|
|
vfx.SetInt("ground_flake_spawn_rate", vfx_ground_flake_spawn_rate); |
|
|
|
|
|
|
|
vfx.SetInt("flying_flake_spawn_rate", vfx_flying_flake_spawn_rate); |
|
|
|
|
|
|
|
vfx.SetFloat("min_frost_size", vfx_min_frost_size); |
|
|
|
|
|
|
|
vfx.SetFloat("max_frost_size", vfx_max_frost_size); |
|
|
|
|
|
|
|
vfx.SetFloat("min_spike_size", vfx_min_spike_size); |
|
|
|
|
|
|
|
vfx.SetFloat("max_spike_size", vfx_max_spike_size); |
|
|
|
|
|
|
|
vfx.SetFloat("min_flake_size", vfx_min_flake_size); |
|
|
|
|
|
|
|
vfx.SetFloat("max_flake_size", vfx_max_flake_size); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|