public void ChangeLeader(bool button) { if (button) { status.SortParty(); GameObject nowLeader = GameObject.FindWithTag("Leader"); Vector3 nowPosition = nowLeader.transform.position; Quaternion nowRotation = nowLeader.transform.rotation; Destroy(nowLeader); GameObject player = Instantiate(status.playersData[status.partyMember[0]].modle[0], nowPosition, nowRotation) as GameObject; player.tag = "Leader"; ShinFieldController sfc = player.AddComponent <ShinFieldController> (); sfc.Prepare(0, status.playersData[status.partyMember[0]].status, shinCamera, this.gameObject); } }