// Use this for initialization void Start () { movement = 2; x = 1; y = 1; name = "Derp"; GameObject map = GameObject.Find("Map"); terrain = map.GetComponent<TerrainScript>(); entities = map.GetComponent<EntityMapScript>(); entities.addObject(gameObject, x, y); }
//private string state; // Use this for initialization void Start () { //x 0 at origin, more positive to the right x = 0; //y 0 at origin, more positive down y = 0; horizontalDown = false; verticalDown = false; GameObject map = GameObject.Find("Map"); terrain = map.GetComponent<TerrainScript>(); entities = map.GetComponent<EntityMapScript>(); //state = "default"; }