yyl
4 天以前 c124d98bdf9659cf764bebb799bee42c30eb152f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using UnityEngine;
using System.Collections;
 
using UnityEngine.UI;
using UnityEngine.Events;
 
 
public class NewBieMask : MonoBehaviour
{
    [SerializeField] GuideCircleHollowImage m_Mask;
    public GuideCircleHollowImage mask { get { return m_Mask; } }
 
    public void Display(int _guideStep, Transform _target)
    {
        var config = ScriptableObjectLoader.LoadSoNewBieGuideStep(_guideStep);
        m_Mask.center = (Vector2)this.transform.InverseTransformPoint(_target.position) + config.clickPosition;
        m_Mask.cell = config.clickSize;
    }
 
}