void OnClick() { GuardTowerGuard scrip = Game.GetScript <GuardTowerGuard>(); if (scrip.firstTime) { Game.GetScript <GuardTowerGuard>().OnClick(); } else { Game.player.MoveTo(movePoint, delegate(bool b) { if (camerasOff == 0) { Game.dialogueManager.StartDialogue(dialogue, 0); } else if (camerasOff == 1) { Game.dialogueManager.StartDialogue(dialogue, 1); } else if (camerasOff == 2) { Game.dialogueManager.StartDialogue(dialogue, 2); } else if (camerasOff == 3) { Game.dialogueManager.StartDialogue(dialogue, 3); } }); } }
void OnClick() { Game.player.MoveTo(movePoint, delegate(bool b) { GuardTowerGuard scrip = Game.GetScript <GuardTowerGuard>(); if (!scrip.atScreens && scrip.firstTime) { Game.GetScript <GuardTowerGuard>().OnClick(); } else if (!scrip.atScreens && !scrip.firstTime) { scrip.DontTouchBubble(); } else if (scrip.atScreens) { Game.player.Interact("take", delegate() { Game.player.FaceTarget(transform.position); Game.script.AddItem("metal_file"); Destroy(gameObject); }); } }); }