Пример #1
0
 void Start()
 {
     health = gameObject.AddComponent <TurbineHealth>();
     health.SetData();
     health.health = 200f;
     PDAEncyclopedia.Add("WindTurbine", true);
 }
Пример #2
0
        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
        }