Beispiel #1
0
        public void Awake()
        {
            this.PathReturnQueue           = new PathReturnQueue(this);
            this.PathProcessor             = new PathProcessor(this.PathReturnQueue, 1, false);
            this.AStarConfig               = new AStarConfig();
            this.AStarConfig.pathProcessor = this.PathProcessor;

            LoadGraph();
        }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        this.virtualPos = this.transform.position;

        AStarConfig config = new AStarConfig();

        config.graphs = DeserializeHelper.Load(this.Graph.bytes);

        MoveUpdate();
    }