void Start()
 {
     SetupGameObject();
     if (Simulate)
     {
         MyParticleScript = GameObject.Find("MyPersonalParticleSystem").GetComponent <MyParticleScript>();
     }
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        if (Simulate)
        {
            MyParticleScript = GameObject.Find("MyPersonalParticleSystem").GetComponent <MyParticleScript>();
        }
        onCommand = false;
        if (tag == "Be8")
        {
            Be8Rection_startTime = Time.time;
        }

        for (int i = 0; i < gameObject.transform.childCount; i++)
        {
            childPosition.Add(gameObject.transform.GetChild(i).localPosition);
        }
    }