void Start() { health = gameObject.AddComponent <TurbineHealth>(); health.SetData(); health.health = 200f; PDAEncyclopedia.Add("WindTurbine", true); }
void Start() { health = gameObject.EnsureComponent <TurbineHealth>(); //gameObject.AddComponent<TurbineHealth>(); health.SetData(); health.health = 200f; #if SUBNAUTICA PDAEncyclopedia.Add("WindTurbine", true); #elif BELOWZERO PDAEncyclopedia.Add("WindTurbine", true, false); #endif }