// Use this for initialization void Start() { GameObject go = GameObject.Find("42"); gl = (GameLogik)(go.GetComponent(typeof(GameLogik))); map = gl.map; moveTo(map.blocks[map.x - 1, map.y - 1, map.z - 1]); }
// Use this for initialization void Start() { GameObject go = GameObject.Find("42"); gl = (GameLogik)(go.GetComponent(typeof(GameLogik))); map = gl.map; moveTo(map.blocks[map.x-1, map.y-1, map.z-1]); }
private void Awake() { instance = this; }