Beispiel #1
0
        internal void BuildPrefab()
        {
            PrefabObject = InstantiatePrefabClone("Prefabs/Projectiles/BellBall", "MegaBrassBall");
            PrefabObject.transform.localScale *= 4;
            ProjectileController ghostPrefab = PrefabObject.GetComponent <ProjectileController>();

            ghostPrefab.ghostPrefab = InstantiatePrefabClone("prefabs/projectileghosts/BellBallGhost", "MegaBrassBallGhost");
            ghostPrefab.ghostPrefab.transform.localScale *= 4;
        }
Beispiel #2
0
        internal void BuildPrefab()
        {
            PrefabObject = InstantiatePrefabClone("Prefabs/Projectiles/ImpVoidSpikeProjectile", "IchorSpike");
            var projectileDamage = PrefabObject.GetComponent <ProjectileDamage>();

            projectileDamage.damageType = RoR2.DamageType.Generic;
            ProjectileController ghostPrefab = PrefabObject.GetComponent <ProjectileController>();

            ghostPrefab.ghostPrefab = InstantiatePrefabClone("Prefabs/ProjectileGhosts/ImpVoidspikeProjectileGhost", "IchorSpikeGhost");
            ghostPrefab.ghostPrefab.GetComponent <Light>().color = new Color(0.98f, 0.71f, 0, 1);
            ghostPrefab.ghostPrefab.GetComponentInChildren <MeshRenderer>().material = AssetLoaderAndChecker.MainAssets.LoadAsset <Material>("IchorClaw");
        }