예제 #1
0
 // Use this for initialization
 void Start()
 {
     griddata     = grid.GetComponent <Griddrawing>();
     mapdata      = grid.GetComponent <Samplezeromapgrid>();
     otherdogdata = otherdog.GetComponent <New_method_dogmove>();
     //mapdata.setallfree();
     mapdata.settwentyfree();
     //mapdata.setmapA();
     //mapdata.setmapB();
     //mapdata.setmapC();
     realchanceset();
     blockallo.blockinit();
     targetpos          = new Vector3(posx * 32.0f / 20.0f, posy * 32.0f / 20.0f, 0.0f);
     transform.position = targetpos;
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     dogdata   = thisdog.GetComponent <New_method_dogmove>();
     dogsprite = thisdog.GetComponent <SpriteRenderer>();;
 }