Skip to content

Instantly share code, notes, and snippets.

@Suzeep
Created February 17, 2014 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Suzeep/9049369 to your computer and use it in GitHub Desktop.
Save Suzeep/9049369 to your computer and use it in GitHub Desktop.
Shurikenの初期スケーリングの設定(モノによっては効かない物もある)
using UnityEngine;
using System.Collections;
public class ShurikenEffectScale : MonoBehaviour
{
// Awake
void Awake()
{
// mul scale to particles
var particles = this.gameObject.GetComponentsInChildren<ParticleSystem>();
for( int i=0; i < particles.Length; ++i )
{
particles[ i ].startSize *= m_Scale;
}
}
// member
public float m_Scale = 1.0f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment