Пример #1
0
    public void updateShrink()
    {
        //AudioManager.singleton.PlayClip(shrink);
        float force   = bonesForce * shrinkage;
        float forceUp = bonesForceUp * shrinkage;

        //Down.MovePosition(Down.position + Vector3.down * shrinkage * -high * Time.deltaTime);
        Up.MovePosition(Up.position + Vector3.up * forceUp * Time.deltaTime);
        Left.MovePosition(Left.position + Vector3.left * force * Time.deltaTime);
        Right.MovePosition(Right.position + Vector3.right * force * Time.deltaTime);
        Front.MovePosition(Front.position + Vector3.forward * force * Time.deltaTime);
        Back.MovePosition(Back.position + Vector3.back * force * Time.deltaTime);
    }