Ejemplo n.º 1
0
        private void disableInteraction()
        {
            for (var i = 0; i < colliders.Length; i++)
            {
                colliders[i].enabled = false;
            }

            objectActions.BreakPull();
            registerTile.UpdateTileType(TileType.None);
            objectActions.allowedToMove = false;
            objectActions.isPushable    = false;
        }
Ejemplo n.º 2
0
    public override void onDeathActions()
    {
        objectActions.BreakPull();
        var delay = 0f;

        switch (LastDamageType)
        {
        case DamageType.BRUTE:
            delay = 0.1f; break;

        case DamageType.BURN:
            delay = Random.Range(0.2f, 2f); break;        //surprise
        }
        StartCoroutine(explodeWithDelay(delay, LastDamagedBy));

//            Debug.Log("FuelTank ded!");
    }