Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     //GameObject edt = GameObject.Find("ModoEditor");
     //if (edt != null) return;
     _scoreEmitter = GetComponent <ABParticleSystem> ();
     _scoreEmitter.SetParticlesParent(transform);
 }
Beispiel #2
0
    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;
    }
Beispiel #4
0
    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;
    }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     _scoreEmitter = GetComponent <ABParticleSystem> ();
     _scoreEmitter.SetParticlesParent(transform);
 }