Exemple #1
0
 private void EnsureRunesAreReady()
 {
     if (runesPrefabs.Keys.Count == 0)
     {
         foreach (var runeType in Enum.GetValues(typeof(RuneType)).Cast <RuneType>())
         {
             runesPrefabs[runeType] = AssetLoader.LoadAsset <GameObject>("pudge", runeType + "Rune");  //Resources.Load<GameObject>("Prefabs/" + runeType + "Rune");
         }
     }
 }
Exemple #2
0
        public PudgeWorldEngine(ICommonEngine commonEngine)
        {
            _commonEngine = commonEngine;

            _treePrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Tree");
            _wardPrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Ward");
            _hookPrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Hook");
            _daggerExplosionPrefab = AssetLoader.LoadAsset <GameObject>("pudge", "DaggerExplosion");
            _pudgePrefab           = AssetLoader.LoadAsset <GameObject>("pudge", "PudgePrefab");
            _slardarPrefab         = AssetLoader.LoadAsset <GameObject>("pudge", "Slardar");
            _grassTexture          = AssetLoader.LoadAsset <Texture>("pudge", "GrassTexture");
        }