public override void Passive() { cont = Owner.GetComponent <SurvivorRecogRangeCollider>(); cont.CmdSetBearColliderRadius(passiveRadius); cont.CmdSetBoarColliderRadius(passiveRadius); cont.CmdSetBearColliderEnable(true); cont.CmdSetBoarColliderEnable(true); }
public override void Use(int pos) { base.Use(pos); HPup(); cont.CmdSetBearColliderRadius(usedRadius); cont.CmdSetBoarColliderRadius(usedRadius); Owner.transform.SendMessage("SandwichDuration"); }
public override void Use(int pos) { base.Use(pos); HPup(); cont.CmdSetBearColliderRadius(usedRadius); cont.CmdSetSnakeColliderRadius(usedRadius / 4); Owner.transform.SendMessage("GarlicDuration"); }
public override void Use(int pos) { base.Use(pos); HPup(); cont.CmdSetBearColliderRadius(usedRadius); cont.CmdSetBeeColliderRadius(usedRadius / 3); Owner.transform.SendMessage("BreakTimeDuration"); }
public override void Use(int pos) { base.Use(pos); HPup(); cont.CmdSetBearColliderEnable(true); cont.CmdSetBearColliderRadius(usedRadius); Owner.transform.SendMessage("CanDuration"); }
public override void Passive() { Owner.GetComponent <SurvivorStatus>().CmdSetGarlicFlag(true); cont = Owner.GetComponent <SurvivorRecogRangeCollider>(); cont.CmdSetBearColliderRadius(passiveRadius); cont.CmdSetBearColliderEnable(true); cont.CmdSetSnakeColliderRadius(passiveRadius / 4); cont.CmdSetSnakeColliderEnable(true); }
IEnumerator BearDurationTime(float duration) //지속시간후에 곰에 대한 감지범위의 콜라이더 비활성화 { yield return(new WaitForSeconds(duration)); //일정시간후에 그게 마지막 아이템이었다면 콜라이더 비활성화 if (transform.GetComponent <SurvivorInventory>().CheckLastItemFlag) { cont.CmdSetBearColliderEnable(false); } else //아니면 passive 상태의 콜라이더 유지 { cont.CmdSetBearColliderRadius(10); } }