// Use this for initialization void Start() { effectsControl = GetComponent<P_EffectsController> (); rb = GetComponentsInChildren<Rigidbody> (); GameObject loadSub = Resources.Load("Load/Subject", typeof(GameObject)) as GameObject; testSubject = loadSub; }
// Use this for initialization void Start() { effectsControl = GetComponent <P_EffectsController> (); rb = GetComponentsInChildren <Rigidbody> (); GameObject loadSub = Resources.Load("Load/Subject", typeof(GameObject)) as GameObject; testSubject = loadSub; }
// Use this for initialization void Start() { rb = GetComponentsInChildren<Rigidbody> (); anim = GetComponent<Animator> (); objScale = transform.lossyScale; effectsControl = GetComponent<P_EffectsController> (); anim.SetBool ("Running", true); for (int i = 0; i < rb.Length; i++) { if (i != 0) { // if (rb [i].name == "P_Model_Left_Arm_Top_01" || rb [i].name == "P_Model_Right_Arm_Top_01" || rb [i].name == "HughMan_Left_Arm_Bottom_01" || rb [i].name == "P_Model_Right_Arm_Bottom_01") // { // rb [i].isKinematic = false; // }else // { rb [i].isKinematic = true; //} } } }
// Use this for initialization void Start() { rb = GetComponentsInChildren <Rigidbody> (); anim = GetComponent <Animator> (); objScale = transform.lossyScale; effectsControl = GetComponent <P_EffectsController> (); anim.SetBool("Running", true); for (int i = 0; i < rb.Length; i++) { if (i != 0) { // if (rb [i].name == "P_Model_Left_Arm_Top_01" || rb [i].name == "P_Model_Right_Arm_Top_01" || rb [i].name == "HughMan_Left_Arm_Bottom_01" || rb [i].name == "P_Model_Right_Arm_Bottom_01") // { // rb [i].isKinematic = false; // }else // { rb [i].isKinematic = true; //} } } }
void Start() { anim = GetComponent <Animator> (); effectsControl = GetComponent <P_EffectsController> (); }
void Start() { anim = GetComponent<Animator> (); effectsControl = GetComponent<P_EffectsController> (); }
void Start() { anim = GetComponent <Animator> (); effectsControl = GetComponent <P_EffectsController> (); anim.SetBool("Walking", true); }