Exemplo n.º 1
0
    public void SimpleSpawn(int spawnInt)
    {
        instanceList currentList = InstanceList[spawnInt];

        CheckOverrideAssignment(currentList);

        DeploySpawn(currentList.Prefab, currentList.ShotDirection, currentList.AnimTriggerA,
                    currentList.AnimTriggerB, currentList.SpawnItem, currentList.V3CoordsOverride, currentList.v3CoordsOverrideObject);
    }
Exemplo n.º 2
0
    void CheckOverrideAssignment(instanceList overrideList)
    {
        if (overrideList.V3CoordsOverride == null)
        {
            if (overrideList.v3CoordsOverrideObject == OverrideObject.HeroShip)
            {
                overrideList.V3CoordsOverride = starGameManagerRef.HeroShip;
            }

            if (overrideList.v3CoordsOverrideObject == OverrideObject.StageShape)
            {
                overrideList.V3CoordsOverride = starGameManagerRef.ActorsParent;
            }
        }
    }