Exemple #1
0
    void DisablePlayer()
    {
        gameObject.layer = 0;
        GetComponent <MechController>().enabled = false;
        Crosshair ch = GetComponentInChildren <Crosshair>();

        ch.NoCrosshair();
        ch.enabled = false;
        Renderer[] renderers = GetComponentsInChildren <Renderer> ();
        foreach (Renderer renderer in renderers)
        {
            renderer.enabled = false;
        }
        transform.Find("Camera/Canvas/CrosshairImage").gameObject.SetActive(false);
    }