public virtual void Start() { mJFsorket = JFSocket.GetInstance(); MaxHp = 100; CurrentHp = 100; MaxSpeed = 0.3f; Speed_a = 1; ship = this.gameObject; slider = GameObject.FindGameObjectWithTag("Slider").GetComponent <Slider>(); slider.maxValue = MaxHp; slider.minValue = 0; setSlider(CurrentHp); }
// Use this for initialization void Start() { mJFsorket = JFSocket.GetInstance(); }