private void QuestCheck(NpcBehavior npc) { questReq -= 1; if (questReq <= 0) { isQuesting = false; if (questPoint <= 1) { roomLevel = 5; if (OnQuestFail != null) //cheat { OnQuestFail(this); } } if (questPoint >= 2) { roomLevel += 1; Debug.Log("Room Level = " + roomLevel); if (OnRoomLevelUp != null) { OnRoomLevelUp(this); } if (OnQuestSuccess != null) { OnQuestSuccess(this); } } //we can add more parameter changes here } }
// Use this for initialization void Start() { healthBarLength = Screen.width / 6; rigidbody2D = GetComponent <Rigidbody2D>(); arena = GameObject.Find("ArenaWall"); npcBehavior = GetComponent <NpcBehavior>(); }
private NpcBehavior GetBehavior() { if (Configuration.BehaviorType == NpcBehaviorType.Aggressive && Presence is DynamicPresence) { // hogy ne tamadjanak be mindenkit rogton return(NpcBehavior.Create(NpcBehaviorType.Neutral)); } return(NpcBehavior.Create(Configuration.BehaviorType)); }
private void DisableMovement(NpcBehavior npc) { playerMode = PlayerMode.talking; //Debug.Log(gameObject.name + " Read notif from the NPC, CONTROL DISABLED"); input.enabled = false; }
public void TriggerDialogue(NpcBehavior npc)//Zak added this parameter! check your trigger button! { //Debug.Log("Notified from NPC" + thisNPC.name); //Zak also added this FindObjectOfType <DialogueManager>().StartDialogue(dialogue); }
void Start() { target = GameObject.Find("Admin Controller"); Debug.Log(transform.parent); behavior = transform.parent.gameObject.GetComponent("NpcBehavior") as NpcBehavior; }