public static void Poof(Vector3 pos) { Vector3 poofPos = pos; poofPos.y = 0.3f; Instantiate(MetaScript.getMeta().PoofAnimation, poofPos, Quaternion.identity); }
public static void Tomb(Vector3 pos, string enslaved) { Vector3 tombPos = pos; tombPos.y = 0.1f; GameObject tomb = Instantiate(MetaScript.getMeta().Tombstone, tombPos, Quaternion.identity); tomb.GetComponent <Tomb>().setName(enslaved); MetaScript.getMeta().souls.AddLast(enslaved); }
// Update is called once per frame void Update() { bool isProtected = MetaScript.getGlobal_Stats().getHasColdProtection(); if (!isProtected) { timePassed += Time.deltaTime; if (timePassed >= tickTime) { timePassed = 0; heatExhaust(player); List <GameObject> NPCs = MetaScript.getMeta().GetComponent <OwnedNPCList>().getNPCs(); for (int i = 0; i < NPCs.Count; i++) { heatExhaust(NPCs[i]); } } } }
public override void removeStorm() { MetaScript.getMeta().GetComponent <Global_Stats>().setGatherMultiplier(MetaScript.getGlobal_Stats().getBaseGather()); Destroy(gameObject); }