예제 #1
0
    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);
    }
예제 #2
0
    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 );
    }