diff options
Diffstat (limited to 'GameCode/SetTeamColorFromSpawnedAttack.cs')
-rw-r--r-- | GameCode/SetTeamColorFromSpawnedAttack.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/GameCode/SetTeamColorFromSpawnedAttack.cs b/GameCode/SetTeamColorFromSpawnedAttack.cs new file mode 100644 index 0000000..6130323 --- /dev/null +++ b/GameCode/SetTeamColorFromSpawnedAttack.cs @@ -0,0 +1,9 @@ +using UnityEngine; + +public class SetTeamColorFromSpawnedAttack : MonoBehaviour +{ + private void Start() + { + GetComponent<SetTeamColor>().Set(PlayerSkinBank.GetPlayerSkinColors(GetComponentInParent<SpawnedAttack>().spawner.playerID)); + } +} |