public void SilenceMinion() { silence = true; text = ""; awaken = new Awaken(); lifeSteal = false; block = false; charge = false; taunt = false; mPass = new minionPassive(); }
public Awaken getAwaken(string id) { if (id == "test") { a = new TestAwaken(); a.type = "target"; } if (id == "graveRob") { a = new mpGraveRob(); a.type = "play"; } return(a); }
protected virtual void Awake() { // 登録済みの GameObject にアタッチされている全ての IObservableAwakeMonoBehaviour Component から登録 this.PreAwakeGameObjectList.SelectMany(x => x.GetComponents <IObservableAwakeMonoBehaviour>()).ToList().ForEach(x => this.OnAwakeObservableList.Add(x.OnAwakeAsObservable())); // 登録済みの ObservableLifecycleMonoBehaviour Component から登録 this.PreAwakeComponentList.ForEach(x => this.OnAwakeObservableList.Add(x.OnAwakeAsObservable())); // 全ての先読み MonoBehaviour の Awake() 呼び出しが完了したら処理を行う this.OnAwakeObservableList .WhenAll() .Subscribe( (_) => { this.OnAwake(); Awaken.OnNext(this); Awaken.OnCompleted(); } ); }
private void Awaken(Awaken obj) { _isSleeping = false; _clickUi.Add(_branch); }
private void Awaken(Awaken obj) { _isSleeping = false; _sleepMillis = 0; }