public MaterialSwap Duplicate( IMaterialSwapGetter item, FormKey formKey, TranslationCrystal?copyMask) { var newRec = new MaterialSwap(formKey); newRec.DeepCopyIn(item, default(ErrorMaskBuilder?), copyMask); return(newRec); }
public MaterialSwap DeepCopy( IMaterialSwapGetter item, MaterialSwap.TranslationMask?copyMask = null) { MaterialSwap ret = (MaterialSwap)((MaterialSwapCommon)((IMaterialSwapGetter)item).CommonInstance() !).GetNew(); ((MaterialSwapSetterTranslationCommon)((IMaterialSwapGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn( item: ret, rhs: item, errorMask: null, copyMask: copyMask?.GetCrystal(), deepCopy: true); return(ret); }
public MaterialSwap DeepCopy( IMaterialSwapGetter item, ErrorMaskBuilder?errorMask, TranslationCrystal?copyMask = null) { MaterialSwap ret = (MaterialSwap)((MaterialSwapCommon)((IMaterialSwapGetter)item).CommonInstance() !).GetNew(); ((MaterialSwapSetterTranslationCommon)((IMaterialSwapGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn( item: ret, rhs: item, errorMask: errorMask, copyMask: copyMask, deepCopy: true); return(ret); }
public MaterialSwap DeepCopy( IMaterialSwapGetter item, out MaterialSwap.ErrorMask errorMask, MaterialSwap.TranslationMask?copyMask = null) { var errorMaskBuilder = new ErrorMaskBuilder(); MaterialSwap ret = (MaterialSwap)((MaterialSwapCommon)((IMaterialSwapGetter)item).CommonInstance() !).GetNew(); ((MaterialSwapSetterTranslationCommon)((IMaterialSwapGetter)ret).CommonSetterTranslationInstance() !).DeepCopyIn( ret, item, errorMask: errorMaskBuilder, copyMask: copyMask?.GetCrystal(), deepCopy: true); errorMask = MaterialSwap.ErrorMask.Factory(errorMaskBuilder); return(ret); }
public override object GetNew() { return(MaterialSwap.GetNew()); }
// Update is called once per frame void Update() { if (MovementRoomProgress == 4 && !_movementDone) { progress++; _movementDone = true; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("MovementPlaySoundFromHere")); StartTime = Time.time; } if (RoundManager.instance != null && ObjectivesRoomProgress != 1200) { ObjectivesRoomProgress = RoundManager.instance.team1Points; } if (progress == 1) { if (ms == null) { ms = GameObject.FindGameObjectWithTag("Player").GetComponent <MaterialSwap>(); } if (ms.isVisible == true) { StealthRoomProgress = 0; } else { StealthRoomProgress += Time.deltaTime; } if (StealthRoomProgress >= 5) { progress++; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("StealthPlaySoundFromHere")); StartTime = Time.time; } } if (ShootyRoomProgress == 6 && !_shootyDone) { progress++; _shootyDone = true; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("ShootyPlaySoundFromHere")); StartTime = Time.time; } if (DashRoomProgress == 3 && !_dashDone) { progress++; _dashDone = true; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("DashPlaySoundFromHere")); StartTime = Time.time; } if (DecoyRoomProgress == 1 && !_decoyDone) { progress++; _decoyDone = true; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("DecoyPlaySoundFromHere")); StartTime = Time.time; } if (RoundManager.instance.team1Points >= 1200 && !_objectiveDone) { progress++; _objectiveDone = true; SoundManager.instance.PlayTutorialNextRoom(GameObject.Find("ObjectivePlaySoundFromHere")); StartTime = Time.time; } LerpTime = Time.time - StartTime; //print("Start Time: "+ StartTime + " LerpTime: " + LerpTime); switch (progress) { case 1: MovementRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); break; case 2: StealthRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); break; case 3: ShootyRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); ShootyRoom.transform.Find("Bridge").localPosition = new Vector3(0, Bridgecurve.Evaluate(LerpTime), 3.329f); break; case 4: DashRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); break; case 5: DecoyRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); break; case 6: ObjectivesRoom.transform.Find("Front Door").localPosition = new Vector3(0, curve.Evaluate(LerpTime), 12.5f); break; } }
// Use this for initialization void Start () { babies = GetComponentsInChildren<Image>(); playerFlickerHeartMaterialSwap = FindObjectOfType<MaterialSwap>(); }