public void Initilize() { type = TutorialStepType.NONE; nextMsg = QuestTutorialMsg.NONE; objectTarget = null; uiPath = string.Empty; fingerType = TutorialFingerType.TOP; doubleTouch = false; listOption = new List<int>(); }
public void LoadFromXml( XmlNode _node) { // init Initilize(); foreach ( XmlAttribute attribute in _node.Attributes) { switch ( attribute.Name) { case "Type": type = ( TutorialStepType)Enum.Parse( typeof( TutorialStepType), attribute.Value, true); break; case "Path": uiPath = attribute.Value; break; case "NextMsg": nextMsg = ( QuestTutorialMsg)Enum.Parse( typeof( QuestTutorialMsg), attribute.Value, true); break; case "PtType": fingerType = ( TutorialFingerType)Enum.Parse( typeof( TutorialFingerType), attribute.Value, true); break; case "DoublePt": doubleTouch = System.Convert.ToInt32( attribute.Value) != 0 ? true : false; break; case "Value0": case "Value1": case "Value2": listOption.Add( System.Convert.ToInt32( attribute.Value)); break; } } }
void ShowFingerCore( TutorialFingerType _type, bool _double, GameObject _targetObject) { if( fingerController == null) return; fingerController.SetFingerType( _type, _double); SetFingerPosition( _targetObject); }