private void InterfaceInitialize() { if (null == m_EnergyGridParent) { Debug.LogError("null == m_EnergyGridParent"); return; } if (null == m_EnergyGridBackgroundParent) { Debug.LogError("null == m_EnergyGridBackgroundParent"); return; } if (null == m_UnitDataGameObject) { Debug.LogError("null == m_UnitDataGameObject"); return; } if (null == m_PlayerHP) { Debug.LogError("null == m_PlayerHP"); return; } m_HitPointPlayer = m_PlayerHP.GetComponent <RectTransform>(); m_HPVibrationPlayer = m_PlayerHP.GetComponent <UGUIImageVibration>(); if (null == m_EnemyHP) { Debug.LogError("null == m_EnemyHP"); return; } m_HitPointEnemy = m_EnemyHP.GetComponent <RectTransform>(); m_HPVibrationEnemy = m_EnemyHP.GetComponent <UGUIImageVibration>(); InterfaceInitialize_Data(); InterfaceInitialize_EnergyGrid(); m_State = GetaPieceInterfaceState.BattleInitialize; }
private void InterfaceInitialize() { if( null == m_EnergyGridParent ) { Debug.LogError("null == m_EnergyGridParent"); return ; } if( null == m_EnergyGridBackgroundParent ) { Debug.LogError("null == m_EnergyGridBackgroundParent"); return ; } if( null == m_UnitDataGameObject ) { Debug.LogError("null == m_UnitDataGameObject"); return ; } if( null == m_PlayerHP ) { Debug.LogError("null == m_PlayerHP"); return ; } m_HitPointPlayer = m_PlayerHP.GetComponent<RectTransform>() ; m_HPVibrationPlayer = m_PlayerHP.GetComponent<UGUIImageVibration>() ; if( null == m_EnemyHP ) { Debug.LogError("null == m_EnemyHP"); return ; } m_HitPointEnemy = m_EnemyHP.GetComponent<RectTransform>() ; m_HPVibrationEnemy = m_EnemyHP.GetComponent<UGUIImageVibration>() ; InterfaceInitialize_Data() ; InterfaceInitialize_EnergyGrid() ; m_State = GetaPieceInterfaceState.BattleInitialize ; }