Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        print("you fail");
        LogiInit.interpolate_color(ref curr_r, ref curr_g, ref curr_b);

        ChangeMaterial(gameObject, new Color(curr_r, curr_g, curr_b));
    }
        void FixedUpdate()
        {
            //if (IsAttached == true)
            // {
            bool dropped = true;// CheckForDrop();

            if (dropped == false)
            {
                UpdateVelocities();
            }

            if (IsAttached)
            {
                LogiInit.interpolate_color(ref curr_r, ref curr_g, ref curr_b);
                ChangeMaterial(gameObject, new Color(curr_r, curr_g, curr_b));
            }


            //      }

            AddExternalVelocities();
        }