赞
踩
教程地址(观看视频需翻墙):
教程代码实例:
using UnityEngine;
using System.Collections;
public class UsingOtherComponents : MonoBehaviour
{
public GameObject otherGameObject;
private AnotherScript anotherScript;
private YetAnotherScript yetAnotherScript;
private BoxCollider boxCol;
//使用Awake减少开销
void Awake ()
{
anotherScript = GetComponent<AnotherScript>();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。