PUN Classic (v1), PUN 2, Bolt는 휴업 모드입니다. Unity2022에 대해서는 PUN 2에서 서포트하지만, 신기능의 추가는 없습니다. 현재 이용중인 고객님의 PUN 및 Bolt 프로젝트는 중단되지 않고, 퍼포먼스나 성능이 떨어지는 일도 없습니다. 앞으로의 새로운 프로젝트에는 Photon Fusion 또는 Quantum을 사용해 주십시오.

Animation

If you want to use your animation to process physics or logic, you should enable Always Animate on the Culling Mode of the animator. If you decide you do not want to use the built in Animator support in Bolt you could also just subscribe to state changes and apply the changes to the animator state machine.

For example:

C#

public class MyPlayerController : Bolt.EntityBehaviour<IPlayerState>
{
    private Animator anim;

    private void Start ()
    {
        anim = GetComponent<Animator>();
    }

    public override void Attached()
    {
        BoltConsole.Write("Player Attached");

        state.AddCallback("walking", () => {
            anim.SetBool("walking", state.walking);
        });

        state.AddCallback("dead", () => {
            anim.SetBool("dead", state.dead);
        });
    }
}
Back to top