// Use this for initialization
    void Start()
    {
        Transform tranPath = null;

        BossShouBiScript = new XKBossXieZiShouBiCtrl[BossXieZiShouBi.Length];
        for (int i = 0; i < BossXieZiShouBi.Length; i++)
        {
            BossShouBiScript[i] = BossXieZiShouBi[i].AddComponent <XKBossXieZiShouBiCtrl>();
            tranPath            = XKBossXieZiPathCtrl.GetInstance().BossXieZiPath[i].transform;
            BossShouBiScript[i].SetXieZiShouBiInfo(tranPath);
        }

        BossXieZiHealth.SetBossXieZiScript(this);
    }
Beispiel #2
0
 // Use this for initialization
 void Awake()
 {
     _Instance = this;
     gameObject.SetActive(false);
 }