Пример #1
0
    void IncreaseGroupSize(Subculture newGroupType)
    {
        groupSize += 1;
        subcultures.Add(newGroupType.ToString());
        switch (groupSize)
        {
        case 2:
            npcs[8].SetActive(true);
            npcs[9].SetActive(true);
            break;

        case 3:
            npcs[10].SetActive(true);
            npcs[11].SetActive(true);
            break;

        case 4:
            npcs[12].SetActive(true);
            npcs[13].SetActive(true);
            break;

        case 5:
            npcs[14].SetActive(true);
            npcs[15].SetActive(true);
            break;
        }
    }
Пример #2
0
    int ReactionChecker(Subculture mySc, Subculture theirSc, GameObject go)
    {
        print(mySc.ToString() + " " + theirSc.ToString());
        int returnthis = 0;

        #region populars reactions
        if (mySc == Subculture.populars &&
            (theirSc == Subculture.academics || theirSc == Subculture.normies))
        {
            returnthis = 0;
        }
        if (mySubculture == Subculture.populars &&
            (false))
        {
            //no reaction
            returnthis = 1;
        }
        if (mySubculture == Subculture.populars &&
            (theirSc == Subculture.nerds || theirSc == Subculture.loners))
        {
            print("Negative Reaction");
            returnthis = 2;
        }
        #endregion
        #region academics reactions
        if (mySubculture == Subculture.academics &&
            (theirSc == Subculture.nerds))
        {
            returnthis = 0;
        }
        if (mySubculture == Subculture.academics &&
            (theirSc == Subculture.populars || theirSc == Subculture.normies))
        {
            //no reaction
            returnthis = 1;
        }
        if (mySubculture == Subculture.academics &&
            (theirSc == Subculture.loners))
        {
            print("Negative Reaction");
            returnthis = 2;
        }
        #endregion
        #region loners reactions
        if (mySubculture == Subculture.loners &&
            (theirSc == Subculture.nerds))
        {
            returnthis = 0;
        }
        if (mySubculture == Subculture.loners &&
            (theirSc == Subculture.academics || theirSc == Subculture.normies))
        {
            //no reaction
            returnthis = 1;
        }
        if (mySubculture == Subculture.loners &&
            (theirSc == Subculture.populars))
        {
            print("Negative Reaction");
            returnthis = 2;
        }
        #endregion
        #region nerds reactions
        if (mySubculture == Subculture.nerds &&
            (theirSc == Subculture.loners || theirSc == Subculture.normies))
        {
            returnthis = 0;
        }
        if (mySubculture == Subculture.nerds &&
            (theirSc == Subculture.academics))
        {
            //no reaction
            returnthis = 1;
        }
        if (mySubculture == Subculture.nerds &&
            (theirSc == Subculture.populars))
        {
            print("Negative Reaction");
            returnthis = 2;
        }
        #endregion
        #region normies reactions
        if (mySubculture == Subculture.normies &&
            (theirSc == Subculture.populars || theirSc == Subculture.academics || theirSc == Subculture.nerds))
        {
            print("suck");
            returnthis = 0;
        }
        if (mySubculture == Subculture.normies &&
            (theirSc == Subculture.loners))
        {
            //no reaction
            returnthis = 1;
        }
        if (mySubculture == Subculture.normies &&
            (false))
        {
            print("broken Reaction");
            returnthis = 2;
        }
        #endregion
        print("reaction found = " + returnthis);

        return(0);
    }