Inheritance: MonoBehaviour
Esempio n. 1
0
    void Awake()
    {
        motor = GetComponent<CharacterMotorCS>();

        Transform root = transform;
        while ( root.parent != null )
            root = root.parent;
        vcr = root.GetComponent<InputVCR>();
        useVCR = vcr != null;
    }
Esempio n. 2
0
    void Awake()
    {
        motor = GetComponent <CharacterMotorCS>();

        Transform root = transform;

        while (root.parent != null)
        {
            root = root.parent;
        }
        vcr    = root.GetComponent <InputVCR>();
        useVCR = vcr != null;
    }
 void Awake()
 {
     motor = GetComponent <CharacterMotorCS>();
 }
 void Awake()
 {
     motor = GetComponent<CharacterMotorCS>();
 }