Example #1
0
    public override void Init()
    {
        base.Init();

        m_aoTouchInfos = new TouchInfo[mk_iMaxTouchNumber];

        InitTouch();

        m_aoCommandsGesture = new InputCompositeGesture[(int)GestureCommandType.COUNT];
        InputCompositeGesture[] aoCommand = GameObject.FindObjectsOfType <InputCompositeGesture>();
        for (int i = 0; i < aoCommand.Length; ++i)
        {
            m_aoCommandsGesture[(int)aoCommand[i].CommandType] = aoCommand[i];
        }
    }
	public override void Init()
	{
		base.Init();

		m_aoTouchInfos = new TouchInfo[mk_iMaxTouchNumber];

		InitTouch();

		m_aoCommandsGesture = new InputCompositeGesture[(int)GestureCommandType.COUNT];
		InputCompositeGesture[] aoCommand = GameObject.FindObjectsOfType<InputCompositeGesture>();
		for(int i = 0; i < aoCommand.Length; ++i)
		{
			m_aoCommandsGesture[(int)aoCommand[i].CommandType] = aoCommand[i];
		}
	}