摘要:
using UnityEngine;using System.Collections; public class FoodSnake : MonoBehaviour { public int yLimit = 30; public int xLimit = 22; public GameObject 阅读全文
摘要:
public class MoveSnake : MonoBehaviour { Vector2 direction = Vector2.up; // Use this for initialization void Start () { InvokeRepeating("Move", 0.5f, 阅读全文