示例#1
0
        private void Awake()
        {
            initialStats = ConfigDirectory.LoadAsset <PlayerStatsData>(cd => cd.ASSET_DEFAULT_STATS);

            if (playerStatsData == null)
            {
                ResetStats();
            }
            else
            {
                InitialiseNullStats();
            }
        }
示例#2
0
 public static PlayerCustomisationData CreateDefault(int index)
 {
     return(ConfigDirectory.LoadAsset <PlayerCustomisationData>(
                cd => cd.FOLDER_DEFAULT_CUSTOMISATION + (index + 1)));
 }