Exemple #1
0
 void Start()
 {
     Form   = gameObject.GetComponentInParent <SelectForm>();
     player = gameObject.GetComponent <PlayerController> ();
     pMana  = gameObject.GetComponentInParent <Mana> ();
     ammo   = gameObject.GetComponentInParent <Ammo>();
     Cam    = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>();
 }
Exemple #2
0
 // 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>();
 }
Exemple #3
0
    // 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>();
        }
    }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     player = gameObject.GetComponentInParent <PlayerMovement>();
     Cam    = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <ShakeControl>();
 }
Exemple #5
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     ShakeControl.StartShakeDetection(GameLevel.Easy);
 }