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
// // Use this for initialization void Start() { // DEBUG ERROR: Inform if the script is placed incorrectly. if (go_ObjectHoldingEngine == gameObject) { Debug.LogError("BRIDGE PLACED ON OBJECT HOLDING MAIN SCRIPT! Move bridge to the gameobject representing the physical engine!"); } else { v_PhysicalEngineDamageModule = gameObject.GetComponent <CS_DamageModule>(); v_VehicleEngine = go_ObjectHoldingEngine.GetComponent <CS_VehicleEngine>(); } // END - If correct script placement is true. } // END - Start
// private BrakeCondition v_BrakeCondition = BrakeCondition.TargetDistance; Temp void Start() { // Get components: Engine = GetComponent<CS_VehicleEngine>(); WheelManager = GetComponent<CS_WheelManager>(); v_InteriorPanels = GetComponent<CS_WheeledTankInteriorPanels>(); Player = GameObject.Find ("PF_WheeledTank_00"); Player.GetComponent<Transform>(); CurrentTarget = Player; v_playerTrackerObject = GameObject.Find("Tracker"); } // 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