public SquadType(SquadStaticData data) { staticData = data; //HACK: squadtype prefab is always the same, since we don't need any variations if squads are just billboards. prefab = Resources.Load("prefabs/squads/placeholder squad") as GameObject; TypeContainer <SquadType> .add(staticData.name, this); }
public SquadType(SquadStaticData data) { staticData = data; //HACK: squadtype prefab is always the same, since we don't need any variations if squads are just billboards. prefab = Resources.Load( "prefabs/squads/placeholder squad" ) as GameObject; TypeContainer<SquadType>.add( staticData.name, this ); }