void Start() { Form = gameObject.GetComponentInParent <SelectForm>(); player = gameObject.GetComponent <PlayerController> (); pMana = gameObject.GetComponentInParent <Mana> (); ammo = gameObject.GetComponentInParent <Ammo>(); Cam = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>(); }
// Use this for initialization public override void Start() { base.Start(); Cam = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>(); drops = false; currentHealth = maxHealth; ChangeState(new IdleState()); rb = GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { Cam = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>(); currentHealth = maxHealth; player = gameObject.GetComponent <PlayerMovement> (); animator = gameObject.GetComponent <AnimatorController>(); select = gameObject.GetComponent <SelectForm>(); MAattack = gameObject.GetComponentInChildren <MeleeAttack>(); AimAttack = gameObject.GetComponentInChildren <Aimming>(); UpdateHealthBar(); if (changescene == null) { changescene = GameObject.Find("SceneManager").GetComponent <SceneTransition>(); } }
// Use this for initialization void Start() { player = gameObject.GetComponentInParent <PlayerMovement>(); Cam = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { ShakeControl.StartShakeDetection(GameLevel.Easy); }