Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

37 行
733 B

using UnityEngine;
using System.Collections;
public class BoatController : MonoBehaviour {
//Boat stats
public bool Human;
public int AIdifficulty;
public float speed;
public float weight;
public float strength;
public float wakeWidth;
//cache the engine connected to the boat
//private Engine boatEngine;
//local cache
//private Rigidbody RB;
//private AudioSource AS;
// Use this for initialization
void Start ()
{
//RB = gameObject.GetComponent<Rigidbody>();
//AS = gameObject.GetComponent<AudioSource>();
//boatEngine = gameObject.GetComponent<Engine>();
if (Human == true)
{
gameObject.AddComponent<HumanController>();
}
else
{
gameObject.AddComponent<AIcontroller>();
}
}
}