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

        clipUtils.StartFadeInBlush();
        clipUtils.StartFadeInHearts();
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 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();
    }
Ejemplo n.º 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();
    }
Ejemplo n.º 6
0
 static void SnapToNext()
 {
     ClipUtils.SnapToNext(Selection.objects);
 }
Ejemplo n.º 7
0
 static void SnapToPrevious()
 {
     ClipUtils.SnapToPrevious(Selection.objects);
 }
Ejemplo n.º 8
0
 static void AlignToTail()
 {
     ClipUtils.AlignClipsToTail(Selection.objects);
 }
Ejemplo n.º 9
0
 static void AlignToHead()
 {
     ClipUtils.AlignClipsToHead(Selection.objects);
 }