void Start() { animator = GetComponent <Animator> (); Debug.Assert(animator); Debug.Assert(Test.Util.HasAnimatorParameter(animator, TheAnimatorId.Instance(true).OnSceneChange)); Debug.Assert(animator.HasState(0, TheAnimatorId.Instance().TheLastState)); }
public void ShowAll() { for (int i = 0; i < Length; i++) { SetTriggerTo(TheAnimatorId.Instance().Show, i); } }
void Awake() { Debug.Assert(camelScore); Debug.Assert(snakeScore); Debug.Assert(whoWon); TheAnimatorId.Create(); }
void Update() { switch (currentState) { case State.Hiding: break; case State.Screwing: if (whoWonAnimator.GetCurrentAnimatorStateInfo(0).shortNameHash == TheAnimatorId.Instance().Complete) { currentState = State.LightingBegin; } break; case State.LightingBegin: currentState = State.Lighting; time = Time.time; searchLight.Show(); break; case State.Lighting: if (Time.time - time > LightingDuration) { currentState = State.Completed; } break; case State.Completed: break; } }
void Start() { Test.Util.HasAnimatorParameter(whoWonAnimator, TheAnimatorId.Instance(true).Show); Debug.Assert(whoWonAnimator.HasState(0, TheAnimatorId.Instance().Complete)); currentState = State.Hiding; }
public WordAnimation(Transform transform, TextMesh mesh, GameObject[] objects) : base(transform, mesh, objects) { theHideTrigger = TheAnimatorId.Instance().Hide; theShowTrigger = TheAnimatorId.Instance().Show; Debug.Assert(TestAnimatorHasTrigger(theHideTrigger)); Debug.Assert(TestAnimatorHasTrigger(theShowTrigger)); }
void Awake() { TheAnimatorId.Create(); Random.seed = (int)(Time.realtimeSinceStartup * 1000f); Debug.Assert(configHolder); Debug.Assert(touchInterface); Debug.Assert(phrase); Debug.Assert(recognitionTime); Debug.Assert(progress); Debug.Assert(complete); }
void Start() { animator = GetComponent <Animator> (); Debug.Assert(animator); Debug.Assert(Test.Util.HasAnimatorParameter(animator, TheAnimatorId.Instance(true).DidFix)); Debug.Assert(Test.Util.HasAnimatorParameter(animator, TheAnimatorId.Instance().StartScrolling)); Debug.Assert(animator.HasState(0, TheAnimatorId.Instance().Complete)); text = GetComponent <Text> (); Debug.Assert(text); tryFix = false; }
public void IncrementDigit() { ++currentDigit; currentDigit = currentDigit % 10; text.text = currentDigit.ToString(); if (tryFix && currentDigit == theFinalDigit) { ++passCount; } if (passCount == MinCountToPass) { animator.SetBool(TheAnimatorId.Instance().DidFix, true); } }
void Awake() { TheAnimatorId.Create(); // TheScene.Create (); }
public void StartScrolling() { Debug.Assert(animator); Debug.Assert(TheAnimatorId.Instance() != null); animator.SetTrigger(TheAnimatorId.Instance().StartScrolling); }
public bool DidComplete() { return(animator.GetCurrentAnimatorStateInfo(0).shortNameHash == TheAnimatorId.Instance().Complete); }
void OnDestroy() { TheAnimatorId.Destroy(); }
public void InflateOnce() { animator.SetTrigger(TheAnimatorId.Instance().OnSceneChange); }
public void Show() { whoWonAnimator.SetTrigger(TheAnimatorId.Instance().Show); currentState = State.Screwing; }