public void BurnBuilding() { a.AddScore(); Vector3 Spawn = this.transform.position - (this.transform.up * .5f); GameObject G = (GameObject)Instantiate(Burnt, Spawn, this.transform.rotation); G.GetComponent <BurntBuilding>().BurntBuildingNum = buildingNum; Destroy(this.gameObject); //Debug.Log("Replace Building"); }