Ejemplo n.º 1
0
 void Start () {
     // Get components:
     go_CurrentCamera = v_ViewportCamera;
     Engine = GetComponent<CS_VehicleEngine>();
     v_InteriorPanels = GetComponent<CS_WheeledTankInteriorPanels>();
     v_TankWeapons = GetComponent<CS_WheeledTankWeapons_00>();
 } // END - Start
    //    public UnityEngine.UI.Image v_TankBase;

    // END - VARIABLES

    void Start()
    {
        v_GunView    = GameObject.Find("MainScreen_GunView");
        v_Viewfinder = GameObject.Find("MainScreen_Viewport");

        v_Engine         = GetComponentInParent <CS_VehicleEngine>();
        v_TankWeapons    = GetComponentInParent <CS_WheeledTankWeapons_00>();
        v_RocketTargetUI = GOGUI_RocketTarget.GetComponent <CS_RocketTargetUI_00>();

        v_ConsoleParticleSystem = GameObject.Find("PanelDeficiencyParticle").GetComponent <ParticleSystem>();

        v_ConsoleSparkEmitter      = v_ConsoleParticleSystem.emission;
        v_ConsoleSparkEmitter.rate = 0;

        if (!v_Viewfinder.activeSelf)
        {
            v_Viewfinder.SetActive(true);
        }
        if (v_GunView.activeSelf)
        {
            v_GunView.SetActive(false);
        }
    }     // END - Start