Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
    // 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;
    }
Exemplo n.º 3
0
    // 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;
                //}
            }
        }
    }
Exemplo n.º 5
0
 void Start()
 {
     anim           = GetComponent <Animator> ();
     effectsControl = GetComponent <P_EffectsController> ();
 }
Exemplo n.º 6
0
 void Start()
 {
     anim = GetComponent<Animator> ();
     effectsControl = GetComponent<P_EffectsController> ();
 }
Exemplo n.º 7
0
 void Start()
 {
     anim           = GetComponent <Animator> ();
     effectsControl = GetComponent <P_EffectsController> ();
     anim.SetBool("Walking", true);
 }