コード例 #1
0
    public void CreateNewMuscles(GameObject parent, GameObject child, int numbOfMuscleSeed, int muscleStrengthSeed, int muscleAnchorSeed, int muscleConnectedAnchorSeed, int nodeSeed)
    {
        Random.InitState(numbOfMuscleSeed);

        numbOfMuscles = Random.Range(0, 4);

        for (int i = 0; i < numbOfMuscles; i++)
        {
            Muscle m = new Muscle(parent, child);
            m.CreateNewMuscle(muscleStrengthSeed, muscleAnchorSeed, muscleConnectedAnchorSeed);
            muscles.Add(m);
        }

        Random.InitState(nodeSeed);
    }