예제 #1
0
    protected override void TrainUnit(UnitTrainType unitType)
    {
        GameObject newUnit = null;
        switch(unitType)
        {
            case UnitTrainType.Infantry:
                {
                    newUnit = Instantiate(Infantry, transform.position - (transform.right * -5), transform.rotation) as GameObject;
                }
                break;

        }
        var commandable = newUnit.GetComponent<Commandable>();
        commandable.Faction = faction;
    }
예제 #2
0
 protected abstract void TrainUnit(UnitTrainType unitType);
예제 #3
0
파일: Outpost.cs 프로젝트: CosmicRey/VGP230
 protected override void TrainUnit(UnitTrainType unitType)
 {
 }