摘要: iTween.ShakePosition(GameObject.Find("Main Camera"), new Vector3(1f, 0f, 1f), gap);参数释义:动作物体 范围 持续时间 阅读全文
posted @ 2012-06-29 09:39 小牛仔 阅读(646) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;public class SoundSwitch : MonoBehaviour { public AudioSource as1; public AudioSource as2; public AudioClip[] a1; // Use this for initialization void Start () { //代码关键点1(可选):增加两个AudioSource到GameObject this.gameObject.AddComponent("Au... 阅读全文
posted @ 2012-06-28 10:31 小牛仔 阅读(2630) 评论(0) 推荐(0) 编辑