You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
C#
20 lines
464 B
C#
3 weeks ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class TWS_PlayerController : TWS_CustomizableCharacter
|
||
|
{
|
||
|
public Animator animator;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
TWS_Delegates._OnPlayerAnimationTriggeredFromUI = OnAnimationTriggeredFromUI;
|
||
|
ApplyAllCustomizationsFromCustomizationData();
|
||
|
}
|
||
|
|
||
|
void OnAnimationTriggeredFromUI(string animationName)
|
||
|
{
|
||
|
animator.Play(animationName);
|
||
|
}
|
||
|
}
|