//Инициализация, получаем ссылки на необходимые нам компоненты void Start() { flameParticles = transform.GetChild (0).GetComponent<ParticleSystem> (); shellParticles = transform.GetChild (1).GetComponent<ShellparticleSystem> (); smokeParticles = transform.GetChild (2).GetComponent<ParticleSystem> (); }
//Инициализация, получаем ссылки на необходимые нам компоненты void Start() { flameParticles = transform.GetChild(0).GetComponent <ParticleSystem> (); shellParticles = transform.GetChild(1).GetComponent <ShellparticleSystem> (); smokeParticles = transform.GetChild(2).GetComponent <ParticleSystem> (); }