상속: MonoBehaviour
예제 #1
0
 void Start()
 {
     meshController = GameObject.Find("Collider").GetComponent <MeshController>();
     flowerBloom    = GameObject.Find("Flower").GetComponent <FlowerBloom>();
     GetComponent <MeshFilter>().mesh = new Mesh();
     InitMesh();
 }
예제 #2
0
    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; //设置叶生长度
    }