Exemplo n.º 1
0
    private void AddStackable(Stackable stackable)
    {
        if (stackable != null)
        {
            //this.ToggleRigidBodyKinematic(true);

            if (this.BlocksStackUp)
            {
                StackOnTop(stackable);
            }
            else
            {
                StackOnBottom(stackable);
            }

            BodyStack.AddStackable(stackable);
            stackable.OnAddedToPlayer(this.gameObject);

            //If we do this, hilarity ensues
            //this.ToggleRigidBodyKinematic(false);
        }
    }