mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2025-02-23 05:24:32 +01:00
22 lines
570 B
C#
22 lines
570 B
C#
|
using UnityEngine;
|
|||
|
using System.Collections;
|
|||
|
using ParticlePlayground;
|
|||
|
|
|||
|
public class PlaygroundSineOverflow : MonoBehaviour {
|
|||
|
|
|||
|
PlaygroundParticlesC particles;
|
|||
|
float amount = .1f;
|
|||
|
Vector3 initialOverflow;
|
|||
|
|
|||
|
// Use this for initialization
|
|||
|
void Start () {
|
|||
|
particles = GetComponent<PlaygroundParticlesC>();
|
|||
|
initialOverflow = particles.overflowOffset;
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update () {
|
|||
|
particles.overflowOffset = initialOverflow+new Vector3(Mathf.Cos (Time.time)*amount, Mathf.Sin (Time.time)*amount, Mathf.Cos (Time.time)*amount);
|
|||
|
}
|
|||
|
}
|