2016-12-16 11 views
0

저는 Cocos Sharp를 처음 사용하고 질문 제목의 동작을 구현하는 데 어려움을 겪고 있습니다. 사용자가 약간의 스프라이트에 닿은 후 3 초가 지나면 사라지거나 사라질 메시지를 사용자에게 보여주고 싶습니다. 그러나 나는 그것을 어떻게하는지 이해할 수 없다.접촉시 수초 동안 CCLabel 표시

나는이 같은 CCLabel을 보여주는 해요 :

var scoreLabel = new CCLabel("Touch Menu and Exit button together to exit!", "Arial", 50, CCLabelFormat.SystemFont); 
scoreLabel.PositionX = button.PositionX; 
scoreLabel.PositionY = button.PositionY + 300; 
scoreLabel.AnchorPoint = CCPoint.AnchorMiddleRight; 

누군가가 나를 도울 수 있습니까?

답변

1

1초

scoreLabel.RunActions(new CCDelayTime(3), new CCFadeOut(1)); 
3 초 후 페이드