コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        //setting the wall to the wall in the scene
        walls     = new GameObject[] { GameObject.Find("Walls").transform.GetChild(0).gameObject, GameObject.Find("Walls").transform.GetChild(1).gameObject };
        golfMeter = GameObject.Find("golfbar");

        //TODO: Curator should be able to be constant throughout scenes
        curatorScript.EnsureArtist();

        //TODO: This should be somewhere else as well
        allTraits = curatorScript.GetAllTraits();
        foreach (Trait trait in allTraits)
        {
            trait.SetBaseRank(Random.Range(25, 60));
        }

        //This will have to happen every scene
        StartNight();
    }