Example #1
0
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>();

        clipUtils.StartFadeInBlush();
        clipUtils.StartFadeInHearts();
    }
Example #2
0
    // OnStateExit is called when a transition ends and the state machine finishes evaluating this state
    override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>();

        clipUtils.StartFadeOutSweat();
        clipUtils.SetMonsterMode(false);
    }
Example #3
0
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>();

        clipUtils.SetMonsterMode(false);

        GameObject     crowd = GameObject.Find("Crowd");
        CrowdSimulator cs    = crowd.GetComponent <CrowdSimulator>();

        cs.enabled = true;

        GameObject tableSet = GameObject.Find("TableSetMain");
        Rigidbody  rb       = tableSet.AddComponent <Rigidbody>();

        rb.AddForce(new Vector3(-4.0f, 5.0f, 0.0f), ForceMode.Impulse);
        clipUtils.StartMoveTable(rb);

        GameObject player = GameObject.Find("Player");
        Vector3    pos    = player.transform.position;

        pos.y = 1.077f;
        clipUtils.StartMovePlayerTowards(player, pos);
    }
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>();

        clipUtils.Blink();
    }
Example #5
0
    // OnStateExit is called when a transition ends and the state machine finishes evaluating this state
    override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ClipUtils clipUtils = animator.gameObject.GetComponent <ClipUtils>();

        clipUtils.SetHumanMode();
    }
Example #6
0
 static void SnapToNext()
 {
     ClipUtils.SnapToNext(Selection.objects);
 }
Example #7
0
 static void SnapToPrevious()
 {
     ClipUtils.SnapToPrevious(Selection.objects);
 }
Example #8
0
 static void AlignToTail()
 {
     ClipUtils.AlignClipsToTail(Selection.objects);
 }
Example #9
0
 static void AlignToHead()
 {
     ClipUtils.AlignClipsToHead(Selection.objects);
 }