Exemple #1
0
    void Start()
    {
        playerModel.AlwaysAnimate(true);
        playerModel.censorshipEnabled = false;

        for (int i = 0; i < 10; i++)
        {
            if (playerModel.multiMesh.parts.Count() <= i)
            {
                playerModel.multiMesh.parts.Add(null);
            }

            var partName = PlayerPrefs.GetString("PlayerModelSlot" + i.ToString());
            if (!string.IsNullOrEmpty(partName))
            {
                playerModel.multiMesh.parts[i] = GameManager.FindPrefab(partName);
            }

            playerModel.Rebuild();
        }
    }
 void Start()
 {
     playerModel.AlwaysAnimate(true);
 }