예제 #1
0
    public float CreateOrbitAspect(string sigilName, Vector3 orbitPosition, Material mat)
    {
        SealComponent component = CreateComponent(sigilName + "_OrbitAspect_" + mat.name, mat);

        component.transform.localScale = Vector3.one / (1.68f * OrbitingScaleFactor);
        component.Spin(SealComponent.SpinDirection.EITHER, 0.1f, 1f);
        float orbitDegrees = component.Orbit(orbitPosition, Vector3.zero, SealComponent.SpinDirection.EITHER, 0.1f, 1f);

        return(orbitDegrees);
    }
예제 #2
0
    public void Focus()
    {
        if (focused)
        {
            return;
        }

        focused = true;
        SealComponent component = CreateComponent("Focus", AspectResources.GetComponentMaterial(Aspect.Circle_Runes));

        component.Spin(SealComponent.SpinDirection.EITHER, 0.1f, 1f);
    }
예제 #3
0
    public void CreateCenterAspect(Material mat)
    {
        SealComponent component = CreateComponent("CenterAspect_" + mat.name, mat);

        component.Spin(SealComponent.SpinDirection.EITHER, 0.1f, 1f);
    }