Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void OnStart(StartState state)
- {
- base.OnStart(state);
- if (state == StartState.None) return;
- StartCoroutine(FireFirstChanged());
- }
- public IEnumerator<YieldInstruction> FireFirstChanged()
- {
- while(!part.started) {
- yield return new WaitForFixedUpdate();
- }
- changed = true;
- yield return new WaitForSeconds(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement