public virtual void Init() { levelIndex = 0; GameManager.GetAllPoints(transform.position, tower.size, out points); Debug.Log(points.Count); SetPickableAndTower(); state = TowerState.Idle; curTower = tower.towerMsg; }
public virtual void OnBuildOver() { state = TowerState.Idle; curTower = CurTower.nextLevelTower[levelIndex]; anim.SetInteger("curLevel", curTower.curLevel); }