// Use this for initialization
    void Start()
    {
        RectTransform rect = healthBar.transform.parent.gameObject.GetComponent <RectTransform>();

        rect.anchoredPosition = new Vector2(0, (float)0.7);

        light = this.GetComponentInChildren <ServerLight>();
        //fire = this.transform.Find("Fire").GetComponent<ParticleSystem>();
        //smoke = this.transform.Find("Smoke").GetComponent<ParticleSystem>();
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     light = this.GetComponentInChildren <ServerLight>();
 }