예제 #1
0
 public void SetCombatUnitConfig(CombatUnitConfig config)
 {
     combatUnitConfig = config;
     HexUnit.SetMeshChild(Instantiate(config.MeshChild, gameObject.transform).transform);
     HexVision.AddVisibleObject(HexUnit.GetMesh());
     BaseMovement = config.BaseMovement;
     BaseStrength = config.BaseStrength;
     Symbol       = config.Symbol;
     foreach (AbilityConfig abilityConfig in config.GetAbilityConfigs())
     {
         abilities.AbilitiesList.Add(abilityConfig);
     }
 }