如何在从Unity3d调用Visual Studio 2013时添加智能感知和语法高亮?
现在我有一段代码:
using UnityEngine;
using System.Collections;
public class cubeScript : MonoBehaviour
{
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
if (Input.GetKeyDown(KeyCode.R))
gameObject.renderer.material.color = Color.red;
else if (Input.GetKeyDown(KeyCode.B))
gameObject.renderer.material.color = Color.blue;
if (Input.GetKeyDown(KeyCode.G))
gameObject.renderer.material.color = Color.green;
}
}
...而且它全部都是黑色的。