Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
1 parent 1aa738d692
commit 1b1df1ae48
7925 files changed
+2617237 -20

No files matched your search

@@ -0,0 +1,53 @@
package room
{
import flash.display.MovieClip;
public class RoomObject_SocialTrigger extends RoomObject
{
private var _currentStage:int;
private var _stages:Array;
private var _totalCount:int;
public function RoomObject_SocialTrigger(param1:MovieClip)
{
super(param1);
_stages = param1.stages;
clearCount();
update();
}
public function clearCount() : void
{
_totalCount = 0;
}
public function incCount() : void
{
_totalCount = _totalCount + 1;
}
public function update() : void
{
var _loc2_:int = 0;
var _loc1_:* = 0;
while(_loc2_ < _stages.length)
{
if(_totalCount < _stages[_loc2_].total)
{
break;
}
_loc1_ = _loc2_;
_loc2_++;
}
if(_currentStage != _loc1_)
{
_currentStage = _loc1_;
_mc.gotoAndPlay(_stages[_currentStage].label);
}
}
}
}