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; }
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"); }