TV.Awake C# (CSharp) Méthode

Awake() public méthode

public Awake ( ) : void
Résultat void
    public void Awake()
    {
        tvScreenMesh = this.transform.FindChild("TVScreen").GetComponent<MeshRenderer>(); //get tv screen mesh
        tvDial = this.transform.FindChild("RetroTV").FindChild("Dial").gameObject; //get tv dial

        if (disableRenderTextureWhenNotInUse)
        {
            setupTVCamerasList();
        }

        checkAvailableTVChannel();
        updateTVChannel();
    }