操纵的方块上面的脚本:
using UnityEngine;
using System.Collections;
public class playerScript : MonoBehaviour {
delegate void CHANGECOLOR(Color color);
event CHANGECOLOR changeMyColor;
event CHANGECOLOR changeMyColor1;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float a = Input.GetAxis ("Horizontal");
float b = Input.GetAxis ("Vertical");