Example #1
0
    public void DisableSpring()
    {
        SpringPanel component = base.GetComponent <SpringPanel>();

        if (component != null)
        {
            component.set_enabled(false);
        }
    }
Example #2
0
    public static SpringPanel Begin(GameObject go, Vector3 pos, float strength)
    {
        SpringPanel springPanel = go.GetComponent <SpringPanel>();

        if (springPanel == null)
        {
            springPanel = go.AddComponent <SpringPanel>();
        }
        springPanel.target     = pos;
        springPanel.strength   = strength;
        springPanel.onFinished = null;
        springPanel.set_enabled(true);
        return(springPanel);
    }
    public static SpringPanel Begin(GameObject go, Vector3 pos, float strength)
    {
        //IL_001b: Unknown result type (might be due to invalid IL or missing references)
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        SpringPanel springPanel = go.GetComponent <SpringPanel>();

        if (springPanel == null)
        {
            springPanel = go.AddComponent <SpringPanel>();
        }
        springPanel.target     = pos;
        springPanel.strength   = strength;
        springPanel.onFinished = null;
        springPanel.set_enabled(true);
        return(springPanel);
    }