2026-04-08 스킬시스템 진행중, 폴더구조 변경등

This commit is contained in:
2026-04-08 05:36:01 +09:00
parent 0844a07902
commit 4eca51b885
1334 changed files with 61947 additions and 14859 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScaleFactorApplyToMaterial : MonoBehaviour
{
ParticleSystemRenderer ps;
float value;
float m_scaleFactor;
float m_changedFactor;
private void Awake()
{
ps = this.GetComponent<ParticleSystemRenderer>();
value = ps.material.GetFloat("_NoiseScale");
m_scaleFactor = 1;
}
void Update()
{
m_changedFactor = VariousEffectsScene.m_gaph_scenesizefactor; //Please change this in your actual project
if(m_scaleFactor != m_changedFactor && m_changedFactor <= 1)
{
m_scaleFactor = m_changedFactor;
if (m_scaleFactor <= 0.5f)
ps.material.SetFloat("_NoiseScale", value * 0.25f);
else
ps.material.SetFloat("_NoiseScale", value * m_scaleFactor);
}
}
}