Example #1
0
	void Awake ()
	{
//		animator = gameObject.GetComponent<Animator>();
		m_animation = gameObject.GetComponent<Animation> ();
		m_curAnim = "";

//		SkillNum = Skills.Length;
		Guid = Game.GetInstance().actorGuid++;
		string guidStr = Guid.ToString ();

		m_damageNum = gameObject.AddMissingComponent<UIDamageNum>();
		m_healNum = gameObject.AddMissingComponent<UIHealNum>();
		m_originPosition = transform.position;
		m_targetPosition = m_originPosition;
		m_originRotation = transform.rotation;
		m_targetRotation = m_originRotation;
		m_fMoveSpeed = 0;
		m_fTurnSpeed = 0;
		m_bResetRotationAfter = false;
		m_bMoving = false;

		m_bIsBeCatch = false;
		m_hurtEff = new List<GameObject>();
	}
Example #2
0
	protected NormalActor()
	{
		name = "";
		icon = "";

		m_master = null;
		m_target = null;
		
		Skills = null;
		SkillJson = null;

		m_damageNum = null;
		m_healNum = null;

		m_hurtEff = null;
	}