Esempio n. 1
0
    void Start()
    {
        PantsChargeUIManager  = GameObject.Find("Pants Charge Manager").GetComponent <PantsChargeUIManager>();
        OnPlayerStateChanged += Player_OnPlayerStateChanged;

        _CurentMaxMoveSpeed = MoveSpeed;
    }
Esempio n. 2
0
    void Start()
    {
        _Controller             = GetComponent <Controller2D>();
        _PlayerAudioSource      = GetComponent <AudioSource>();
        _PlayerAudioSource.clip = JumpClip;

        PantsChargeUIManager = GameObject.Find("Pants Charge Manager").GetComponent <PantsChargeUIManager>();

        OnPlayerStateChanged += Player_OnPlayerStateChanged;
    }