Exemple #1
0
        protected override void Awake()
        {
            conditionSignals      = ProcessingSignals.Check(this);
            conditionManualDeploy = this is IManualDeploy;

            ProcessingEntities.Create(this);

            var cObject = Add <ComponentObject>();

            cObject.transform = transform;
        }
Exemple #2
0
    void HandleDestroyBullet(DataBullet bullet, int index)
    {
        if (bullet.killed)
        {
            return;
        }
        bullet.killed = true;
        var entity = group_bullets.entities[index];

        ProcessingGoPool.Default.Despawn(Pool.Projectiles, bullet.tr.gameObject);
        ProcessingEntities.Remove <DataBullet>(entity);
        ProcessingEntities.KillEntity(entity);
    }