protected override void AddedToScene() { base.AddedToScene(); pressDelay = new CCDelayTimeEx(MIN_MILISECOND_PRESS_DELAY, "PressDelay"); SetPlayerLayerName("image0"); SetPlayerVelocity(0.7f); AnchorPoint = new CCPoint(0, 0); Position = new CCPoint(-484.666f, 79.78197f); Scale = 41; #if !WINDOWS_PHONE InitializeKeyboardListener(); #endif Schedule(); }
public CSKEntityClass(int velocity, int life, float shoot_delay) { ShootDelay = new CCDelayTimeEx(shoot_delay, "SHOOT_DELAY"); }
public CCPlayerBase(int id, string image) : base(image) { ShootDelay = new CCDelayTimeEx(0.8f, "ShootDelayCount"); ID = id; }
public CSKEnemyClass() { ShootDelay = new CCDelayTimeEx(DEFAULT_SHOOT_DELAY, "ShootDelayCount"); }