2016-09-05 85 views
0

我添加了一個CocosSharpView用一個簡單的動畫Xamarin形式CocosSharp暫停/在Xamarin形式恢復現場的Android不工作

CCMoveTo myactions = new CCMoveTo(1f, new CCPoint(100, 100)); 
    CCMoveTo myactions2 = new CCMoveTo(4f, new CCPoint(0, 100)); 
    CCMoveTo myactions3 = new CCMoveTo(2f, new CCPoint(0, 0)); 
    CCMoveTo myactions4 = new CCMoveTo(2f, new CCPoint(100, 0)); 

    CCSequence seq = new CCSequence(myactions, myactions2, myactions3, myactions4); 
    circle.AddAction(seq); 

我想暫停/通過點擊一個按鈕,恢復場景。

Director.RunningScene.Pause(); 
Director.RunningScene.Resume(); 

我發現在Cocos2d和android中有一個錯誤。我不知道如果我做錯了什麼或者這仍然是一個錯誤?

我只是需要一種方法來暫停/恢復序列

感謝

回答

0

如果你是裏面的場景,也許this.Pause()會做的伎倆。