You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
3 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
|
||
|
public class CarControl : MonoBehaviour {
|
||
|
public static CarControl Instance;
|
||
|
public LayerMask m_layerMask = -1;
|
||
|
public LayerMask r_layerMask = -1;
|
||
|
private RaycastHit hit;//射线
|
||
|
//实例化预制体模型
|
||
|
public GameObject GaoPenCar;//高喷消防车
|
||
|
public GameObject PaiYan_Car;//排烟消防车
|
||
|
public GameObject PaoMo_Car;//泡沫消防车
|
||
|
public GameObject QiangXian_Car;//抢险消防车
|
||
|
public GameObject QiCai_Car;//器材消防车
|
||
|
public GameObject ShuiGuan_Car;//水罐消防车
|
||
|
public GameObject TongXun_Car;//通讯消防车
|
||
|
public GameObject XiaoFang_Ren;//消防员
|
||
|
public GameObject YunTi_Car;//云梯消防车
|
||
|
public GameObject XF_ZZY;//作战消防员
|
||
|
public GameObject ZaoMing_Car;//照明消防车
|
||
|
public GameObject DengGao_Car;//登高车
|
||
|
void Start () {
|
||
|
|
||
|
}
|
||
|
void Awake()
|
||
|
{
|
||
|
if (Instance == null)
|
||
|
{
|
||
|
Instance = this;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void Update () {
|
||
|
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||
|
if (Physics.Raycast(ray, out hit, Mathf.Infinity, m_layerMask))
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|