Beispiel #1
0
 public NodeManager(int goal_x_, int goal_y_, MapChipController mapchip_)
 {
     opennodelist = new List <Node>();
     nodedic      = new Dictionary <int, Node>();
     goal_x       = goal_x_;
     goal_y       = goal_y_;
     map          = mapchip_;
 }
Beispiel #2
0
    void Start()
    {
        // プレハブからヒエラルキーのオブジェクトがもらえなかったので仕方なく名前検索
        mapchip = GameObject.Find("MapManager").GetComponent <MapChipController>();
        player  = GameObject.Find("Player").GetComponent <PlayerController>();

        vec          = new Vector2();
        currentstate = State.IDLE;
        state        = State.ROOT_CHANGE;
        anim         = GetComponent <Animator>();
        roots        = new List <List <List <RootType> > >();
        rootsLoad();
        rootRandomDecide();
    }