Пример #1
0
 public void SetAgentConfig(AgentConfig config)
 {
     agentConfig = 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);
     }
 }