本文整理汇总了C#中Schedule.SetCanInteract方法的典型用法代码示例。如果您正苦于以下问题:C# Schedule.SetCanInteract方法的具体用法?C# Schedule.SetCanInteract怎么用?C# Schedule.SetCanInteract使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schedule
的用法示例。
在下文中一共展示了Schedule.SetCanInteract方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUpSchedules
//NPCConvoSchedule dateWithLG;
protected override void SetUpSchedules()
{
SetupReactions();
moveBack = new Schedule(this, Schedule.priorityEnum.High);
moveBack.Add(new Task(new MoveThenDoState(this, startingPosition, new MarkTaskDone(this))));
moveToBeach = new Schedule(this, Schedule.priorityEnum.DoNow);
moveToBeach.Add(new Task(new MoveThenDoState(this, new Vector3(MapLocations.MiddleOfBeachMiddle.x+1.5f, MapLocations.MiddleOfBeachMiddle.y, MapLocations.MiddleOfBeachMiddle.z), new MarkTaskDone(this))));
Task reachedBeach = new TimeTask(.1f,new IdleState(this));
reachedBeach.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateOne);
moveToBeach.Add(reachedBeach);
moveToBeach.Add(new TimeTask(5.3f, new IdleState(this)));
Task reachedBeachTwo = new TimeTask(.1f,new IdleState(this));
reachedBeachTwo.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateTwo);
moveToBeach.Add(reachedBeachTwo);
moveToBeach.Add(new TimeTask(7.3f, new IdleState(this)));
Task reachedBeachThree = new TimeTask(.1f,new IdleState(this));
reachedBeachThree.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateThree);
moveToBeach.Add(reachedBeachThree);
moveToBeach.Add(new TimeTask(3.3f, new IdleState(this)));
Task reachedBeachFour = new TimeTask(.1f,new IdleState(this));
reachedBeachFour.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateFour);
moveToBeach.Add(reachedBeachFour);
moveToBeach.Add(new TimeTask(6.3f, new IdleState(this)));
Task reachedBeachFive = new TimeTask(.1f,new IdleState(this));
reachedBeachFive.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateFive);
moveToBeach.Add(reachedBeachFive);
moveToBeach.Add(new TimeTask(2.3f, new IdleState(this)));
Task reachedBeachSix = new TimeTask(.1f,new IdleState(this));
reachedBeachSix.AddFlagToSet(FarmerFamilyFlagStrings.GirlCastleDateSix);
moveToBeach.Add(reachedBeachSix);
moveToBeach.Add(new TimeTask(6f, new IdleState(this)));
Task reachedBeachEnd = new TimeTask(.1f,new IdleState(this));
reachedBeachEnd.AddFlagToSet(FlagStrings.EndOfDate);
moveToBeach.Add(reachedBeachEnd);
moveToBeach.Add(new TimeTask(3f, new IdleState(this)));
moveToBeach.SetCanInteract(false);
/*dateWithLG = new NPCConvoSchedule(this, NPCManager.instance.getNPC(StringsNPC.LighthouseGirlMiddle),
new MiddleCastleManToLighthouseGirl(), Schedule.priorityEnum.DoConvo);
dateWithLG.SetCanNotInteractWithPlayer();*/
}