示例#1
0
    public static void Poof(Vector3 pos)
    {
        Vector3 poofPos = pos;

        poofPos.y = 0.3f;
        Instantiate(MetaScript.getMeta().PoofAnimation, poofPos, Quaternion.identity);
    }
示例#2
0
    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);
    }
示例#3
0
    // 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]);
                }
            }
        }
    }
示例#4
0
 public override void removeStorm()
 {
     MetaScript.getMeta().GetComponent <Global_Stats>().setGatherMultiplier(MetaScript.getGlobal_Stats().getBaseGather());
     Destroy(gameObject);
 }