public CoastController(int status, Vector3 pos) { coast = Object.Instantiate(Resources.Load("Prefabs/stone", typeof(GameObject))) as GameObject; coast.name = "from_coast"; storage = new CoastStorage(); if (status == 1) { coast.transform.position = pos; coast.name = "to_coast"; } }