コード例 #1
0
 void Start()
 {
     controller = GetComponent <CharacterController>();
     pd         = GetComponent <ParticleDisplay>();
     pd.Play();
     print("Total elements in runningList = " + MarketDataParser.runningList.Count);
 }
コード例 #2
0
    void Start()
    {
        controller = GetComponent <CharacterController>();
        pd         = GetComponent <ParticleDisplay>();
        pdp        = pd.particles;

        for (int i = 0; i < pdp.Length; i++)
        {
            pdp[i].velocity        = Random.insideUnitSphere;
            pdp[i].angularVelocity = Random.Range(0.0f, 180.0f);
            pdp[i].lifetime        = Mathf.Infinity;
            //pdp[i].color = new Color(Random.Range (0.0f, 1.0f), Random.Range (0.0f, 1.0f), Random.Range (0.0f, 1.0f));
        }
        pd.Play();
    }