//Set singleton!
 void Awake()
 {
     instance = this;
 }
Example #2
0
 //Set singleton!
 void Awake()
 {
     instance = this;
     //Pathfinder2D.Instance.MapStartPosition = new Vector2 (-20, -20) ;
     //Pathfinder2D.Instance.MapEndPosition = new Vector2 (25, 25);
 }
Example #3
0
 //Set singleton!
 void Awake()
 {
     instance = this;
 }
Example #4
0
 void Awake()
 {
     instance   = this;
     pathfinder = GetComponent <Pathfinder2D> ();
 }