public void SetTrapOver() { trapSystem.AddUsed(transform.position); trapSystem.GetNewestChild().SetOn(false, RecycleTrape); tool.enabled = false; craftFunc = true; }
public void OnBuildingTrape() { if (childProjectSystem.GetFreeNum() <= 0) { return; } Vector3 pos = new Vector3(transform.position.x, transform.position.y - 0.6f, transform.position.z); childProjectSystem.AddUsed(pos); childProjectSystem.GetNewestChild().SetOn(false, fakeCallBack); }
public void SetTrapOver() { Vector3 pos = new Vector3(transform.position.x, transform.position.y - 0.6f, transform.position.z); childProjectSystem.AddUsed(pos); childProjectSystem.GetNewestChild().SetOn(true, RecycleTrape); Tool.enabled = false; OnBuildTrapping = false; switchMove(true); craftSystem.SetFuncBusy(false); }
public void SetEffect(Vector3 pos, float _size) { hitEffects.AddUsed(pos); hitEffects.GetNewestChild().SetOn(_size); }