IEnumerator setLevel(EnumLevel level, float time) { GetComponent<AudioSource>().Play(); musicController.QuietDown(time); yield return new WaitForSeconds(time); SceneManager.LoadScene(level.GetName()); }
public Region(string name, EnumLevel level, Coordinate location) { this.Name = name; this.Level = level; this.Location = location; this.Children = new List <Region>(); }
public Region(string name, EnumLevel level, string slug, string isoCode) { this.Name = name; this.Level = level; this.Slug = slug; this.ISOCode = isoCode; }
// Added new Constructor public Region(string name, string isoCode, EnumLevel level, Coordinate location, string parentName) { this.Name = name; this.Level = level; this.Location = location; this.ParentName = parentName; this.ISOCode = isoCode; this.Children = new List <Region>(); }
protected virtual void Change(EnumLevel level, bool fastLevelChange = false) { foreach (var musicController in FindObjectsOfType<AmbientMusicController>()) { musicController.QuietDown(1.5f); } Statics.TimelineChanged = fastLevelChange ? false : setTimeLineChangedValue; StartCoroutine(ChangeCor(level)); }
public static string GetSpeech(EnumAction a, EnumLevel l) { List <string> speech = new List <string>(); int i = 0; foreach (var item in ParseJSON.Instance.dialog) { if (item.Action == Enum.GetName(typeof(EnumAction), a) && item.Level == Enum.GetName(typeof(EnumLevel), l)) { speech.Add(item.Speech); i++; } } Random r = new Random(); int index = r.Next(speech.Count); return(speech[index]); }
private IEnumerator ChangeCor(EnumLevel level) { if (Statics.TimelineChanged) { var screenChanger = FindObjectOfType<ScreenChanger>(); screenChanger.Activate(); yield return new WaitUntil(() => screenChanger.CanContinueWithLoad); } else { if (Controller.Fader != null) { Controller.Fader.EndScene(); yield return new WaitForSeconds(1); yield return new WaitUntil(() => Controller.Fader.CurrentState != FadeInOutState.None); } } Controller.ChangeScene(level); }
public RespawnPoint(EnumLevel levelName, Vector3 startPoint, Facing direction) : base(startPoint, direction) { LevelName = levelName; }
static JDFAutoEmboss() { atrInfoTable[0] = new AtrInfoTable(AttributeName.DIRECTION, 0x22222221, AttributeInfo.EnumAttributeType.enumeration, EnumDirection.getEnum(0), null); atrInfoTable[1] = new AtrInfoTable(AttributeName.EDGEANGLE, 0x33333331, AttributeInfo.EnumAttributeType.double_, null, null); atrInfoTable[2] = new AtrInfoTable(AttributeName.EDGESHAPE, 0x33333331, AttributeInfo.EnumAttributeType.enumeration, EnumEdgeShape.getEnum(0), "Rounded"); atrInfoTable[3] = new AtrInfoTable(AttributeName.EMBOSSINGTYPE, 0x22222221, AttributeInfo.EnumAttributeType.enumeration, EnumEmbossingType.getEnum(0), null); atrInfoTable[4] = new AtrInfoTable(AttributeName.HEIGHT, 0x33333331, AttributeInfo.EnumAttributeType.double_, null, null); atrInfoTable[5] = new AtrInfoTable(AttributeName.IMAGESIZE, 0x33333331, AttributeInfo.EnumAttributeType.XYPair, null, null); atrInfoTable[6] = new AtrInfoTable(AttributeName.LEVEL, 0x33333331, AttributeInfo.EnumAttributeType.enumeration, EnumLevel.getEnum(0), null); atrInfoTable[7] = new AtrInfoTable(AttributeName.POSITION, 0x33333331, AttributeInfo.EnumAttributeType.XYPair, null, null); }
/// /// <summary> * (9) get attribute Level </summary> /// * <returns> the value of the attribute </returns> /// public virtual EnumLevel getLevel() { return(EnumLevel.getEnum(getAttribute(AttributeName.LEVEL, null, null))); }
// --------------------------------------------------------------------- // Methods for Attribute Level // --------------------------------------------------------------------- /// /// <summary> * (5) set attribute Level </summary> /// * <param name="enumVar">: the enumVar to set the attribute to </param> /// public virtual void setLevel(EnumLevel enumVar) { setAttribute(AttributeName.LEVEL, enumVar == null ? null : enumVar.getName(), null); }
public void ChangeScene(EnumLevel newLevel) { previousLoadedLevel = Statics.GetFromName(SceneManager.GetActiveScene().name); SceneManager.LoadScene(newLevel.GetName()); }
internal static void ClearAll() { previousLoadedLevel = EnumLevel.NULL; }
public Vector3 GetEnterPosition(EnumLevel level) { var startPoint = GetEnterData(level).StartPoint; return startPoint; }
public RespawnPoint GetEnterData(EnumLevel level) { var result = startPositions.SingleOrDefault(e => e.LevelName == level); if (result != default(RespawnPoint)) // it is not default struct value return result; if (!Debug.isDebugBuild) return startPositions.Single(e => e.LevelName == level); Debug.LogWarning("nenalezen startovací objekt! " + level); return startPositions.First(); }
static JDFAutoResourceInfo() { atrInfoTable[0] = new AtrInfoTable(AttributeName.ACTUALAMOUNT, 0x33333311, AttributeInfo.EnumAttributeType.double_, null, null); atrInfoTable[1] = new AtrInfoTable(AttributeName.AMOUNT, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null); atrInfoTable[2] = new AtrInfoTable(AttributeName.AVAILABLEAMOUNT, 0x33333333, AttributeInfo.EnumAttributeType.double_, null, null); atrInfoTable[3] = new AtrInfoTable(AttributeName.LEVEL, 0x33333333, AttributeInfo.EnumAttributeType.enumeration, EnumLevel.getEnum(0), "OK"); atrInfoTable[4] = new AtrInfoTable(AttributeName.LOCATION, 0x33333333, AttributeInfo.EnumAttributeType.string_, null, null); atrInfoTable[5] = new AtrInfoTable(AttributeName.MODULEID, 0x33333111, AttributeInfo.EnumAttributeType.string_, null, null); atrInfoTable[6] = new AtrInfoTable(AttributeName.MODULEINDEX, 0x33333111, AttributeInfo.EnumAttributeType.IntegerRangeList, null, null); atrInfoTable[7] = new AtrInfoTable(AttributeName.PROCESSUSAGE, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null); atrInfoTable[8] = new AtrInfoTable(AttributeName.PRODUCTID, 0x33333311, AttributeInfo.EnumAttributeType.shortString, null, null); atrInfoTable[9] = new AtrInfoTable(AttributeName.RESOURCEID, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null); atrInfoTable[10] = new AtrInfoTable(AttributeName.RESOURCENAME, 0x33333333, AttributeInfo.EnumAttributeType.NMTOKEN, null, null); atrInfoTable[11] = new AtrInfoTable(AttributeName.STATUS, 0x33333311, AttributeInfo.EnumAttributeType.enumeration, JDFResource.EnumResStatus.getEnum(0), null); atrInfoTable[12] = new AtrInfoTable(AttributeName.UNIT, 0x33333333, AttributeInfo.EnumAttributeType.string_, null, null); atrInfoTable[13] = new AtrInfoTable(AttributeName.USAGE, 0x33333111, AttributeInfo.EnumAttributeType.enumeration, JDFResourceLink.EnumUsage.getEnum(0), null); elemInfoTable[0] = new ElemInfoTable(ElementName.AMOUNTPOOL, 0x66666111); elemInfoTable[1] = new ElemInfoTable(ElementName.COSTCENTER, 0x66666666); elemInfoTable[2] = new ElemInfoTable(ElementName.MISDETAILS, 0x66666611); elemInfoTable[3] = new ElemInfoTable(ElementName.PART, 0x33333311); elemInfoTable[4] = new ElemInfoTable(ElementName.RESOURCE, 0x33333333); }