public void SetAction( string name, string desc, GActionTimer action_timer, GameObject start_prefab, GameObject end_prefab, ACTION_EFFECT[] effects, Sprite icon, float range, int damage, bool is_hostile, bool requires_target, bool centers_on_target, bool blocks_movement ) { m_actions[(int)action_timer.m_action_id] = new GAction( name, desc, action_timer, start_prefab, end_prefab, range, damage, effects, is_hostile, requires_target, centers_on_target, blocks_movement, icon ); }
public GAction( string name, string desc, GActionTimer action, GameObject attack_start_prefab, GameObject attack_end_prefab, float range, int damage, ACTION_EFFECT[] effects, bool is_hostile, bool requires_target, bool center_on_target, bool blocks_movement, Sprite icon ) { m_action_timer = action; m_attack_start_prefab = attack_start_prefab; m_attack_end_prefab = attack_end_prefab; m_range = range; m_damage = damage; m_action_effects = effects; m_is_hostile = is_hostile; m_requires_target = requires_target; m_center_on_target = center_on_target; m_block_movement = blocks_movement; m_icon = icon; }