void Awake() { if ( parent == null ) if (transform.parent != null ) parent = transform.parent.GetComponent<Petal3D>(); WindSense *= Random.Range(0.5f, 2f); }
void Awake() { if (parent == null) { if (transform.parent != null) { parent = transform.parent.GetComponent <Petal3D>(); } } WindSense *= Random.Range(0.5f, 2f); }