public void Awake() { _characterCollider = GetComponent<BoxCollider>(); _characterRigidbody = GetComponent<Rigidbody>(); _slothSnapper = GetComponent<Snapper>(); _slothController = GetComponent<SlothController>(); ragdolled = false; }
// Use this for initialization void Start () { slothController = GameObject.FindGameObjectWithTag("SlothNinja").GetComponent<SlothController>(); }