//나뭇잎 방향 설정 public void setWindFos(float _WindFos) { this.WindFos = _WindFos; foreach (Transform Leave in BlowingLeaves.transform) { Leave.GetComponent <ParticleAnimator>().force = new Vector3(_WindFos, -4, 0); } }
// Use this for initialization void Start() { WindPos = transform.position; foreach (Transform Leave in BlowingLeaves.transform) { Leave.GetComponent <ParticleRenderer>().sortingLayerName = "object"; } }