// Use this for initialization void Start() { avatarLogic = avatar.GetComponent <AvatarLogic> (); avatarMovement = avatar.GetComponent <AvatarMovement> (); ravenScript = raven.GetComponent <RavenScript> (); GameStart(); }
void Awake() { _logic = GetComponent <AvatarLogic>(); _aimingController = GetComponent <AvatarAimingUnityContext>(); _animationController = GetComponent <AvatarAnimationUnityContext>(); _movementController = GetComponent <SmoothMovementUnityContext>(); _groundDetector = GetComponentInChildren <GroundDetectionUnityContext>(); _projectileSpawner = transform .Find("Physical Model/Weapon Joint/Weapon/Projectile Spawner") .gameObject .GetComponent <ProjectileSpawnerController>(); }