コード例 #1
0
ファイル: TowerManager.cs プロジェクト: jhon130/Pro-Heroes
    /// <summary>
    /// Gets all references.
    /// </summary>
    void Start()
    {
        if (enemies == null)
        {
            enemies = new PlayerManager[0];
        }

        networkLayer = GetComponent <TowerNetworkLayer>();

        myshot = this.GetComponentInChildren <TowerShot>();
        myshot.gameObject.SetActive(false);

        actualLife = totalLife;

        this.ActivateShield();
    }
コード例 #2
0
    /// <summary>
    /// Gets all references.
    /// </summary>
    void Start()
    {
        if (enemies == null)
        {
            enemies = new PlayerManager[0];
        }

        networkLayer = GetComponent<TowerNetworkLayer>();

        myshot = this.GetComponentInChildren<TowerShot>();
        myshot.gameObject.SetActive(false);

        actualLife = totalLife;

        this.ActivateShield();
    }