Example #1
0
	public int gridStartingPos = 5; //this is the position away from block 0 it will start. Is kept against the wall
	
	public override void Awake ()
	{
		base.Awake();
		Reset();
		
		SpriteText t = new GameObject("TEST").AddComponent(typeof(SpriteText)) as SpriteText;
		t.transform.parent = transform;
		t.transform.localPosition = new Vector3(0, 40, 0);
		t.Text = this.GetType().ToString();
		t.SetCharacterSize(10);
		t.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
		t.SetColor(Color.red);
	}