Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (fog == null)
     {
         fog = generateFlickGroup.ReturnFog();
     }
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        // fogの生成
        GameObject tmp = Instantiate(groupObject);

        tmp.transform.SetParent(this.transform);
        tmp.transform.localPosition = Vector3.zero;
        tmp.transform.localRotation = Quaternion.identity;
        tmp.transform.localScale    = Vector3.one;
        fog = tmp.GetComponent <FlickObjectGroup>();

        // fogの物体生成関数を実行
        List <string> filepaths = new List <string>();
        string        namebase  = "syamiko0";

        for (int i = 0; i < 30; i++)
        {
            string num = i.ToString();
            if (i < 10)
            {
                num = "0" + num;
            }
            filepaths.Add(namebase + num);
        }
        fog.readData(filepaths);
    }