You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
635 B
29 lines
635 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace UltraCombos
|
|
{
|
|
public class ParticleUniformBridge : MonoBehaviour
|
|
{
|
|
public Transform impule;
|
|
|
|
UniformStructuredBuffer uniform_buffer;
|
|
|
|
private void Start()
|
|
{
|
|
uniform_buffer = GetComponent<UniformStructuredBuffer>();
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
var uniforms = uniform_buffer.uniform as ParticleUniforms;
|
|
|
|
if (impule != null)
|
|
{
|
|
uniforms.impulsePosition = impule.position;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|