Beispiel #1
0
        public void SetAnimationVars(LetterSetup master_letter)
        {
            m_anim_state_vars = master_letter.AnimStateVars.Clone();

            m_current_letter_action = null;

            // clone the list of active loop cycles, so that the list reference is not shared between two letters
            m_anim_state_vars.m_active_loop_cycles = new List <ActionLoopCycle>();
            foreach (ActionLoopCycle loop_cycle in master_letter.AnimStateVars.m_active_loop_cycles)
            {
                m_anim_state_vars.m_active_loop_cycles.Add(loop_cycle.Clone());
            }
        }
Beispiel #2
0
        public LetterSetup(string character, int letter_idx, Mesh mesh, Vector3 base_offset, ref CustomCharacterInfo char_info, int line_num, int word_idx, EffectManager effect_manager)
        {
            m_character             = character;
            m_mesh                  = mesh;
            m_base_offset           = base_offset;
            m_effect_manager_handle = effect_manager;

            m_progression_variables = new AnimationProgressionVariables(letter_idx, word_idx, line_num);

            m_anim_state_vars = new AnimationStateVariables();
            m_anim_state_vars.m_active_loop_cycles = new List <ActionLoopCycle>();

            SetupLetterMesh(ref char_info);

            if (m_flipped)
            {
                // flip UV coords in x axis.
                m_mesh.uv = new Vector2[] { mesh.uv[3], mesh.uv[2], mesh.uv[1], mesh.uv[0] };
            }
        }
		public void SetAnimationVars(LetterSetup master_letter)
		{
			m_anim_state_vars = master_letter.AnimStateVars.Clone();
			
			m_current_letter_action = null;
			
			// clone the list of active loop cycles, so that the list reference is not shared between two letters
			m_anim_state_vars.m_active_loop_cycles = new List<ActionLoopCycle>();
			foreach(ActionLoopCycle loop_cycle in master_letter.AnimStateVars.m_active_loop_cycles)
			{
				m_anim_state_vars.m_active_loop_cycles.Add(loop_cycle.Clone());
			}
		}
		public LetterSetup(string character, int letter_idx, Mesh mesh, Vector3 base_offset, ref CustomCharacterInfo char_info, int line_num, int word_idx, EffectManager effect_manager)
		{
			m_character = character;
			m_mesh = mesh;
			m_base_offset = base_offset;
			m_effect_manager_handle = effect_manager;
			
			m_progression_variables = new AnimationProgressionVariables(letter_idx, word_idx, line_num);
			
			m_anim_state_vars = new AnimationStateVariables();
			m_anim_state_vars.m_active_loop_cycles = new List<ActionLoopCycle>();
			
			SetupLetterMesh(ref char_info);
			
			if(m_flipped)
			{
				// flip UV coords in x axis.
				m_mesh.uv = new Vector2[] {mesh.uv[3], mesh.uv[2], mesh.uv[1], mesh.uv[0]};
			}
		}