예제 #1
0
    public override void Activate()
    {
        GameObject player = GameObject.FindGameObjectWithTag("Player");

        if (player)
        {
            RunnerController rc = player.GetComponent <RunnerController>();

            if (rc)
            {
                rc.ChangeJumpPower(_interval, _jumpPower);
            }
        }
    }