Ejemplo n.º 1
0
    public void setCloneInactive(GameObject cloneToSet)
    {
        instantiateDeathParticles(cloneToSet.transform, cloneToSet.GetComponent <SpriteRenderer>().color);
        cloneToSet.SetActive(false);

        int id = cloneToSet.GetComponent <PlayerController>().identifier;

        ui.uiLoseColor(id);
        bodyManager.SetInactiveBody(id);
        resetFountain(id);
        bodyManager.SwitchToIndex(0);
    }