Created
February 17, 2014 12:00
-
-
Save Suzeep/9049369 to your computer and use it in GitHub Desktop.
Shurikenの初期スケーリングの設定(モノによっては効かない物もある)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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