public void Awake() { this._transform = base.GetComponent <Transform>(); this._Particule = base.GetComponentInChildren <CParticuleSystem>(); this._moved = base.GetComponent <CMoved>(); this._fire = base.GetComponent <CFire>(); }
public void SpawnSparks(Vector3 pos) { this._ParticuleAsset = Resources.Load <GameObject>("Sparks"); GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate(this._ParticuleAsset, pos, Quaternion.identity); CParticuleSystem component = gameObject.GetComponent <CParticuleSystem>(); this._ParticleList.Add(component); }