Exemple #1
0
        public void OnPlayerEnter(GameObject player)
        {
            PlayerCharacterController playerController = player.GetComponent <PlayerCharacterController>();
            Rigidbody2D rigidBody = player.GetComponent <Rigidbody2D>();
            Vector2     direction = rigidBody.velocity.normalized;

            playerController.DisableInputAndMoveForSeconds(settings.goBackDuration, -direction);

            dialogPlayer.PlayDialog(dialogList);
        }