Beispiel #1
0
        void Start()
        {
            gm       = FindObjectOfType <GameManager>();
            ringData = GetComponent <RingDataHandler>();

            speed    = ringData.GetFloatValue("speed");
            speedVec = Vector2.zero;
            inertia  = ringData.GetFloatValue("inertia");

            rb = GetComponent <Rigidbody2D>();
        }
        void Start()
        {
            gm       = FindObjectOfType <GameManager>();
            ringData = GetComponent <RingDataHandler>();

            isGrabbing = false;

            rotationSpeed = ringData.GetFloatValue("rotationSpeed");
        }