Esempio n. 1
0
    private GameObject instantiateRandomThrowable()
    {
        GameObject throwable = PlayerAccount.spawnRandom(spawnpoint, true, deck);

        addTeam(throwable);
        throwable.transform.parent = throwableInstanceHolder.transform;
        Vector3 prev = throwable.transform.rotation.eulerAngles;

        if (!catapultArmLogic.isLeft)
        {
            throwable.transform.Rotate(new Vector3(0, 180, 0));
        }
        return(throwable);
    }