学习unity,今天学习试做塔防类游戏
进入unity(推荐2017)
准备资源包
创建项目
搭建游戏场景
调整灯光
设计路线,设定导航点
脚本:WayPointManager
using UnityEngine;
using System.Collections.Generic;
public class WayPointManager : MonoBehaviour {
//1
public static WayPointManager Instance;
//2
public List
void Awake() {
//3
Instance = this;
}
//4
public Vector3 GetSpawnPosition(int pathIndex)
{ return
Paths[pathIndex].WayPoints[0].position;
}
}
//5
[Syst