Beispiel #1
0
    private IEnumerator StartRandomName()
    {
        spriteAnimation.Play();
        yield return(new WaitForSeconds(1));

        spriteAnimation.Pause();
        inputField.text = GameMainManager.instance.configManager.randomNamesConfig.GetRandomName();
    }
 static public int Pause(IntPtr l)
 {
     try {
         UGUISpriteAnimation self = (UGUISpriteAnimation)checkSelf(l);
         self.Pause();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #3
0
    public override void OnInspectorGUI()
    {
        obj = target as UGUISpriteAnimation;
        base.OnInspectorGUI();
        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("重播"))
        {
            obj.Rewind();
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("恢复"))
        {
            obj.Resume();
        }
        if (GUILayout.Button("暂停"))
        {
            obj.Pause();
        }
        EditorGUILayout.EndHorizontal();
    }