public override void Undo() { base.Undo(); for (int i = 0; i < length; i++) { obj[i].SetActive(originState[i]); VRCattleManager.RemoveDisabledObj(this.obj[i].transform); } }
public override void Do() { base.Do(); for (int i = 0; i < length; i++) { this.obj[i].SetActive(false); VRCattleManager.AddDisabledObj(this.obj[i].transform); } }
public override void Undo() { base.Undo(); for (int i = 0; i < length; i++) { Color color = this.mrs[i].material.color; color.a = originTransValue[i]; this.mrs[i].material.color = color; VRCattleManager.RemoveTransparentObj(this.mrs[i]); } }
public override void Do() { base.Do(); for (int i = 0; i < length; i++) { Color color = this.mrs[i].material.color; color.a = VRCattleManager.transparentValue; this.mrs[i].material.color = color; VRCattleManager.AddTransparentObj(this.mrs[i]); } }
private void Awake() { if (instance != null) { Destroy(this); } else { instance = this; } InitInAwake(); }