Exemplo n.º 1
0
    public static TweenParticleSystemStartSize SetSize(GameObject go, float size, float duration = 1f)
    {
        TweenParticleSystemStartSize twps = Tweener.InitGO <TweenParticleSystemStartSize>(go);

        twps.BeginSize = twps.CurrentSize;
        twps.EndSize   = size;
        twps.duration  = duration;
        twps.Play(true);

        return(twps);
    }
Exemplo n.º 2
0
    protected override void CustomInspectorGUI()
    {
        TweenParticleSystemStartSize tSize = (TweenParticleSystemStartSize)tween;

        EditorGUILayout.BeginHorizontal();
        EditorTools.DrawLabel("Begin start size", true, GUILayout.Width(150f));
        tSize.BeginSize = EditorGUILayout.Slider(tSize.BeginSize, 0f, 10f);
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        EditorTools.DrawLabel("End start size", true, GUILayout.Width(150f));
        tSize.EndSize = EditorGUILayout.Slider(tSize.EndSize, 0f, 10f);
        EditorGUILayout.EndHorizontal();
    }