void saveDefaultTransformData() { if (effectTfs != null) { foreach (Transform tf in effectTfs) { ObjectDefaultInformation info = new ObjectDefaultInformation(); info.isActive = tf.gameObject.activeSelf; info.localPosition = tf.localPosition; info.localScale = tf.localScale; info.localRotation = tf.localRotation; _objectDefaultInfo[tf] = info; } } if (effectFSMs != null) { foreach (PlayMakerFSM f in effectFSMs) { _fsmActive[f.transform] = f.enabled; } } if (effectAnis != null) { foreach (Animation f in effectAnis) { foreach (AnimationState s in f) { _aniSpeed[s] = s.speed; } } } }
void resetTransform(Transform[] resetTarget) { if (resetTarget != null) { foreach (Transform tf in resetTarget) { if (tf == null) { continue; } ObjectDefaultInformation info = new ObjectDefaultInformation(); info.isActive = tf.gameObject.activeSelf; info.localPosition = tf.localPosition; info.localScale = tf.localScale; info.localRotation = tf.localRotation; _objectDefaultInfo[tf] = info; } } }
void saveDefaultTransformData() { if (buttonEffectTfs != null) { foreach (Transform tf in buttonEffectTfs) { ObjectDefaultInformation info = new ObjectDefaultInformation(); info.isActive = tf.gameObject.activeSelf; info.localPosition = tf.localPosition; info.localRotation = tf.localRotation; info.localScale = tf.localScale; _objectDefaultInfo[tf] = info; } } if (buttonEffectFSMs != null) { foreach (PlayMakerFSM f in buttonEffectFSMs) { _fsmActive[f.transform] = f.enabled; } } if (buttonEffectAnis != null) { foreach (Animation f in buttonEffectAnis) { foreach (AnimationState s in f) { _aniSpeed[s] = s.speed; } } } currentStageMaterial.SetColor("_Color", new Color(0.4980392f, 0.4980392f, 0.4980392f, 1)); chainMaterial.SetColor("_Color", new Color(0.4980392f, 0.4980392f, 0.4980392f, 1)); }