Esempio n. 1
0
 public void PrepareNextMeatPart()
 {
     //next.transform.localScale = next.GetOriginalScale() / 3.0f;
     next.transform.position = new Vector3(2.281f, 8.313f, 0);
     next.GetRigidbody().isKinematic = true;
     next.GetCollider().enabled      = false;
 }
Esempio n. 2
0
    public MeatPartController GetBlock()
    {
        MeatPartController ret = next;

        if (lastSuccess)
        {
            next = Instantiate(normalBlocks[Random.Range(0, normalBlocks.Count)], gameParent);
            maxNormalParts--;
        }
        else
        {
            next = SelectHumanBodyPart();
            screamAudioController.PlayScream();
        }

        PrepareNextMeatPart();

        if (maxHumanParts < 0 || maxNormalParts < 0)
        {
            gameController.PlayerLost();
        }
        ret.GetRigidbody().isKinematic = false;

        uiController.UpdateMeatLeftText(maxNormalParts);

        return(ret);
    }