예제 #1
0
 public override void Effect()
 {
     base.Effect();
     SaveControl.SetString("Room", RoomKey);
     SaveControl.SetInt("Entrance", EntranceIndex);
     OutlinersControl.Main.ChangeLevel();
 }
예제 #2
0
 public void SaveNumbers()
 {
     for (int i = 0; i < CurrentNumbers.Count; i++)
     {
         SaveControl.SetInt("Number" + i, CurrentNumbers[i]);
     }
 }
예제 #3
0
 public void GhostForm()
 {
     if (!GhostControl)
     {
         return;
     }
     SaveControl.SetInt("GhostForm", 1);
     Character.Main.SetGhostForm(true);
     GhostFormEffectAnim.SetTrigger("GhostForm");
     KillProtectTime = 1.5f;
 }
예제 #4
0
파일: NPC.cs 프로젝트: zittacheng/Vampire
        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);
        }
예제 #5
0
        public void OnMouseDown()
        {
            if (AlreadyDead)
            {
                return;
            }

            AlreadyDead = true;
            Anim.SetBool("Coin", true);
            SaveControl.SetInt("Coin", SaveControl.GetInt("Coin") + 1);
            SaveControl.SetInt("PuzzleFinished", 1);
        }
예제 #6
0
 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"));
 }
예제 #7
0
 public override void Effect()
 {
     base.Effect();
     SaveControl.SetInt(Key, Value);
 }
예제 #8
0
 public override void Effect()
 {
     base.Effect();
     SaveControl.SetInt(Key, SaveControl.GetInt(Key) + Change);
 }