Esempio n. 1
0
    public void Setup(AbilityPreviewer previewer)
    {
        this.previewer = previewer;
        CacheUsedVariables();

        positioner.Setup(previewer, this);
        scaler.Setup(previewer, this);
    }
Esempio n. 2
0
    public void Setup(AbilityPreviewer previewer, PreviewConfig previewConfig)
    {
        this.previewer     = previewer;
        this.previewConfig = previewConfig;
        this.positioner    = previewConfig.positioner;

        Initialize();
        UpdateScale(true);
    }
Esempio n. 3
0
    public virtual void Setup(AbilityPreviewer previewer, PreviewConfig previewConfig)
    {
        this.previewer     = previewer;
        this.previewConfig = previewConfig;

        PositionerTransform = new GameObject($"{GetType()}").transform;
        PositionerTransform.SetParent(previewer.transform);

        Target = new GameObject("Target").transform;
        Target.SetParent(PositionerTransform);
    }
    public override void Setup(AbilityPreviewer previewer, PreviewConfig previewConfig)
    {
        base.Setup(previewer, previewConfig);

        PositionerTransform.rotation = Quaternion.identity;
    }