public override void Effect() { base.Effect(); SaveControl.SetString("Room", RoomKey); SaveControl.SetInt("Entrance", EntranceIndex); OutlinersControl.Main.ChangeLevel(); }
public void SaveNumbers() { for (int i = 0; i < CurrentNumbers.Count; i++) { SaveControl.SetInt("Number" + i, CurrentNumbers[i]); } }
public void GhostForm() { if (!GhostControl) { return; } SaveControl.SetInt("GhostForm", 1); Character.Main.SetGhostForm(true); GhostFormEffectAnim.SetTrigger("GhostForm"); KillProtectTime = 1.5f; }
public void Kill() { /* * Anim.SetBool("Kill", true); * Destroy(gameObject, 10);*/ C2D.enabled = false; SaveControl.SetInt(KillKey, 1); Character.Main.StartKill(); OutlinersControl.Main.CreateKillEffect(TargetPoint.transform.position); Destroy(gameObject, KillDelay); }
public void OnMouseDown() { if (AlreadyDead) { return; } AlreadyDead = true; Anim.SetBool("Coin", true); SaveControl.SetInt("Coin", SaveControl.GetInt("Coin") + 1); SaveControl.SetInt("PuzzleFinished", 1); }
public void ChangeBack() { SaveControl.SetInt("GhostForm", 0); Character.Main.SetGhostForm(false); GhostFormEffectAnim.SetTrigger("ChangeBack"); if (SaveControl.GetFloat("MaxGhostTime") > 60) { SaveControl.SetFloat("MaxGhostTime", SaveControl.GetFloat("MaxGhostTime") - 30); SaveControl.SetFloat("MaxGhostTimeII", SaveControl.GetFloat("MaxGhostTimeII") - 10); } SaveControl.SetFloat("GhostTime", SaveControl.GetFloat("MaxGhostTime")); SaveControl.SetFloat("GhostTimeII", SaveControl.GetFloat("MaxGhostTimeII")); }
public override void Effect() { base.Effect(); SaveControl.SetInt(Key, Value); }
public override void Effect() { base.Effect(); SaveControl.SetInt(Key, SaveControl.GetInt(Key) + Change); }