Exemple #1
0
 // Use this for initialization
 private void Awake()
 {
     billie             = GameObject.Find("Billie").GetComponent <JumpingCharacterController> ();
     billieForPosition  = GameObject.Find("Billie");
     m_CurrentAwareness = m_StartingAwareness;
     //Makes the slider fill up and represent the current amount
     SetAwarenessUI();
     m_Animator = GetComponent <Animator>();
 }
Exemple #2
0
    private void Start()
    {
        alertsound = GameObject.Find("Alerted").GetComponent <AlertedSound> ();
        frogdeath  = GameObject.Find("FrogDeath").GetComponent <FrogDeath> ();

        billiejump            = GameObject.Find("Billie").GetComponent <JumpingCharacterController> ();
        m_Filter              = new ContactFilter2D();
        m_Filter.layerMask    = groundedLayerMask;
        m_Filter.useLayerMask = true;
        m_Filter.useTriggers  = false;
        groundCheckRadius     = .1f;     //col.size.x * .5f
    }
Exemple #3
0
 // Use this for initialization
 void Awake()
 {
     groundCheckRadius = .1f;         //col.size.x * .5f
     billie            = GameObject.Find("Billie").GetComponent <JumpingCharacterController> ();
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     jcc         = GetComponent <JumpingCharacterController> ();
     audioSource = GetComponent <AudioSource> ();
 }