Пример #1
0
    public void Init()
    {
        jointController = GetComponent <DistanceJointController>();
        jointController.Init();

        pull = GetComponent <Pull>();
        pull.Init(jointController);

        push = GetComponent <Push>();
        push.Init(this, jointController);

        input = GetComponent <PlayerInput>();
        input.Init();

        lineRenderer = GetComponent <LineController>();
        lineRenderer.Init();
    }