void Start() { meshController = GameObject.Find("Collider").GetComponent <MeshController>(); flowerBloom = GameObject.Find("Flower").GetComponent <FlowerBloom>(); GetComponent <MeshFilter>().mesh = new Mesh(); InitMesh(); }
void Start() { flowerBloom = GameObject.Find("Flower").GetComponent <FlowerBloom>(); flower_head_scale_ = flowerHead.localScale; //记录花蕾自身缩放 light_source_intensity_ = lightSource.intensity; //灯光 flowerHead.localScale = Vector3.zero; //设置花中心自身缩放为0 //foreach (PetalMesh pedal in pedals) // pedal.growthProgress = 0; //设置花瓣生长度 //foreach (PetalMesh leaf in leaves) // leaf.growthProgress = 0; //设置叶生长度 }