public void FinishTrick(eTrick _trickType) { if (onFinishTrick != null) { onFinishTrick(_trickType); } }
public void ChangeTrick(eTrick _trickType) { m_CurrentTrick = _trickType; m_iCurrentTrickIntValue = (int)m_CurrentTrick; if (onChangeTrick != null) { onChangeTrick(_trickType); } }
private static void AddToLocalDictionary(eTrick _trickType, InteractObjectAbstract _eventBasicAbstract) { if (!m_dicRegistedEventObject.ContainsKey(_trickType)) { m_dicRegistedEventObject.Add(_trickType, new List <InteractObjectAbstract>()); } if (!m_dicRegistedEventObject[_trickType].Contains(_eventBasicAbstract)) { m_dicRegistedEventObject[_trickType].Add(_eventBasicAbstract); } }
public static List <InteractObjectAbstract> GetCurrentEventAbleObjectList(eTrick _trickType) { if (m_dicRegistedEventObject.ContainsKey(_trickType)) { return(m_dicRegistedEventObject[_trickType]); } else { m_dicRegistedEventObject.Add(_trickType, new List <InteractObjectAbstract>()); return(m_dicRegistedEventObject[_trickType]); } }
public static eTrick[] GetTricksFromMaskValue(eTrick _usingTrick) { List <eTrick> trick = new List <eTrick>(); for (int i = 0; i < Tricks.Length; i++) { if ((_usingTrick & Tricks[i]) != 0) { trick.Add(Tricks[i]); } } return(trick.ToArray()); }
private static void RemoveToLocalDictionary(eTrick _trickType, InteractObjectAbstract _eventBasicAbstract) { if (m_dicRegistedEventObject.ContainsKey(_trickType)) { if (m_dicRegistedEventObject[_trickType].Contains(_eventBasicAbstract)) { m_dicRegistedEventObject[_trickType].Remove(_eventBasicAbstract); } if (m_dicRegistedEventObject[_trickType].Count == 0) { m_dicRegistedEventObject.Remove(_trickType); } } }
protected bool IsUsingTrick(eTrick _trick) { return((m_eUsingTrick & _trick) != 0); }
public void ResetTrick() { m_CurrentTrick = m_StartTrick; m_iCurrentTrickIntValue = (int)m_CurrentTrick; }
public GameTrick() { m_CurrentTrick = m_StartTrick; m_iCurrentTrickIntValue = (int)m_CurrentTrick; }