Пример #1
0
        public void Init()
        {
            grid = GridBase.singleton;
            Vector3 worldPos = grid.GetWorldCoordinatesFromTile(2, 2 / 2, 4);

            curUnit.transform.position = worldPos;

            GameObject go = new GameObject();

            go.name            = "line vis";
            pathVis            = go.AddComponent <LineRenderer>();
            pathVis.startWidth = 0.2f;
            pathVis.endWidth   = 0.2f;
        }
Пример #2
0
 void Awake()
 {
     singleton = this;
 }
Пример #3
0
 private void Awake()
 {
     singleton = this;
 }