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.
21 lines
512 B
21 lines
512 B
4 years ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class CarSkillTest : MonoBehaviour {
|
||
|
|
||
|
private void OnGUI()
|
||
|
{
|
||
|
if (Input.GetMouseButton(0))
|
||
|
{
|
||
|
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||
|
RaycastHit hit;
|
||
|
if (Physics.Raycast(ray, out hit))
|
||
|
{
|
||
|
//施放举臂技能
|
||
|
gameObject.GetComponent<CarSkill>().ArmLifting(hit.point);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|