コード例 #1
0
    protected virtual void Awake()
    {
        anim = GetComponentsInChildren<Animator>()[0];
        stateManager = new StateManager(this);
        buffManager = new BuffManager(this);
        stateManager.SetNeutralState();
        playerRigidbody = GetComponent<Rigidbody>();
        controllerInterface = new ControlInterface(playerNumber);

        moveSpeedMultiplier = 1f;
        hp = 100f;
        initialPosition = transform.position;
    }