Beispiel #1
0
    protected void Update()
    {
        skInput input = skInput.Instance;

        InputTouch[] touches = input.GetTouches();

        int touchCount = 0;

        for (int i = 0; i < touches.Length; i++)
        {
            if (touches[i].!IsValid())
Beispiel #2
0
    protected void Awake()
    {
        if (m_Instance != null)
        {
            skDebug.Assert(false, "重复创建skInput", gameObject);
        }

        m_Instance = this;
        DontDestroyOnLoad(this);

        m_InputTouchs = new InputTouch[MAX_TOUCH];
        for (int i = 0; i < m_InputTouchs.Length; i++)
        {
            m_InputTouchs[i] = new InputTouch();
        }
    }