// Use this for initialization void Start() { //GameObject edt = GameObject.Find("ModoEditor"); //if (edt != null) return; _scoreEmitter = GetComponent <ABParticleSystem> (); _scoreEmitter.SetParticlesParent(transform); }
public void Create(ABParticleSystem emitter) { mass = 0.15f; _renderer = GetComponent <SpriteRenderer> (); _emitter = emitter; }
protected virtual void Awake() { _collider = GetComponent <Collider2D> (); _rigidBody = GetComponent <Rigidbody2D> (); _destroyEffect = GetComponent <ABParticleSystem> (); _spriteRenderer = GetComponent <SpriteRenderer> (); _audioSource = GetComponent <AudioSource> (); _currentLife = _life; IsDying = false; }
protected override void Start() { base.Start(); float nextJumpDelay = Random.Range(0.0f, _maxTimeToJump); Invoke("IdleJump", nextJumpDelay + 1.0f); _trailParticles = gameObject.AddComponent <ABParticleSystem> (); _trailParticles._particleSprites = ABWorldAssets.TRAIL_PARTICLES; _trailParticles._shootingRate = 0.1f; }
// Use this for initialization void Start() { _scoreEmitter = GetComponent <ABParticleSystem> (); _scoreEmitter.SetParticlesParent(transform); }