//アクター切り替え public void changeActor(int num, bool addActorFlag = false) { if (num < 0 || num > this.actors.Count - 1) { return; } if (num == this.nowActor) { return; } // if (this.isInteractive == false) return; //立ち絵移動処理 GameObject nextActor = this.actors[num]; nextActor.transform.position = new Vector3(10.0f, 0.0f, 0.0f); nextActor.GetComponent <ActorController>().flick(true, 0.5f); GameObject nowActor = this.actors[this.nowActor]; nowActor.GetComponent <ActorController>().flick(true); //アクター名移動処理 this.actorName.GetComponent <ActorNameController>().flick(true, this.actorNames[num]); //アイコン移動処理 if (addActorFlag) { this.initIconPosition(num); } else { int n = num - this.nowActor; //移動量の計算 if (n != 0) { if (n > 0) { this.moveIcon(true, n); } else { this.moveIcon(false, -n); } } } this.nowActor = num; soundManager.playSE("change"); }
public void OnPlaySound() { soundManager.playSE("splash"); }