Ejemplo n.º 1
0
 public void Start()
 {
     walkSpeed = 4f;
     rigidBody = GetComponent <Rigidbody2D> ();
     rigidBody.gravityScale = 0f;
     euphoriaController     = GetComponent <EuphoriaController>();
 }
 public void Start()
 {
     this.euphoriaValue 		= 0f;
     this.euphoriaController = getPlayer().GetComponent<EuphoriaController>();
     PrepareEuphoriaBar ();
     RefreshEuphoriaBar ();
 }
Ejemplo n.º 3
0
 public void Start()
 {
     this.euphoriaValue      = 0f;
     this.euphoriaController = getPlayer().GetComponent <EuphoriaController>();
     PrepareEuphoriaBar();
     RefreshEuphoriaBar();
 }
Ejemplo n.º 4
0
 new void Start()
 {
     base.Start();
     onAlert             = false;
     eyeController       = GetComponentInChildren <EyeController>();
     patrolStartPosition = transform.position;
     patrolEndPosition   = transform.position + transform.right * 5f;
     euphoriaController  = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
     bulletGenerator     = GetComponentInChildren <BulletGenerator>();
     shotSound           = GetComponent <AudioSource>();
     reloadCounter       = reloadTime;
 }
Ejemplo n.º 5
0
 void Awake()
 {
     area = GetComponent<BoxCollider2D>();
     playerT = GetComponentInParent<Transform>();
     playerBC = GetComponentInParent<BoxCollider2D>();
     this.transform.position = playerT.transform.position + (playerT.transform.right * (playerBC.size.x/2 + area.size.y/2));
     attacking = false;
     euphoriaController = GetComponentInParent<EuphoriaController>();
     scoreController = GetComponentInParent<ScoreController>();
     slashController = GetComponentInChildren<SwordSlashController>();
     attackCounter = 0f;
     attackSwing = 0.5f;
 }
Ejemplo n.º 6
0
 void Awake()
 {
     area     = GetComponent <BoxCollider2D>();
     playerT  = GetComponentInParent <Transform>();
     playerBC = GetComponentInParent <BoxCollider2D>();
     this.transform.position = playerT.transform.position + (playerT.transform.right * (playerBC.size.x / 2 + area.size.y / 2));
     attacking          = false;
     euphoriaController = GetComponentInParent <EuphoriaController>();
     scoreController    = GetComponentInParent <ScoreController>();
     slashController    = GetComponentInChildren <SwordSlashController>();
     attackCounter      = 0f;
     attackSwing        = 0.5f;
 }
Ejemplo n.º 7
0
    public void Start()
    {
        rigidBody = GetComponent<Rigidbody2D>();
        playerTransform = GameObject.FindGameObjectWithTag("Player").transform;
        playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
        meleeHitController = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren<MeleeHitController>();
        eyeController = GetComponentInChildren<EyeController>();

        if (eyeController == null) {
            Debug.Log("EyeController");
        }
        if (meleeHitController == null) {
            Debug.Log("MeleeHitController");
        }
        if (eyeController == null) {
            Debug.Log("EyeController");
        }
    }
Ejemplo n.º 8
0
    public void Start()
    {
        rigidBody                = GetComponent <Rigidbody2D>();
        playerTransform          = GameObject.FindGameObjectWithTag("Player").transform;
        playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
        meleeHitController       = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <MeleeHitController>();
        eyeController            = GetComponentInChildren <EyeController>();

        if (eyeController == null)
        {
            Debug.Log("EyeController");
        }
        if (meleeHitController == null)
        {
            Debug.Log("MeleeHitController");
        }
        if (eyeController == null)
        {
            Debug.Log("EyeController");
        }
    }
Ejemplo n.º 9
0
 void Awake()
 {
     spriteR         = GetComponent <SpriteRenderer>();
     euphoriaC       = GetComponentInParent <EuphoriaController>();
     playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
 }
Ejemplo n.º 10
0
 public void Start()
 {
     StartCoroutine("Spawn");
     playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }
Ejemplo n.º 11
0
 public void Start()
 {
     audios             = GetComponents <AudioSource>();
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
Ejemplo n.º 12
0
 public void Start()
 {
     StartCoroutine("Spawn");
     playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
Ejemplo n.º 13
0
 void Awake()
 {
     spriteR = GetComponent<SpriteRenderer>();
     euphoriaC = GetComponentInParent<EuphoriaController>();
     playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>();
 }
Ejemplo n.º 14
0
 public void Start()
 {
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
Ejemplo n.º 15
0
 public void Start()
 {
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }
Ejemplo n.º 16
0
 new void Start()
 {
     base.Start();
     onAlert = false;
     eyeController = GetComponentInChildren<EyeController>();
     patrolStartPosition = transform.position;
     patrolEndPosition = transform.position + transform.right * 5f;
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
     bulletGenerator = GetComponentInChildren<BulletGenerator>();
     shotSound = GetComponent<AudioSource>();
     reloadCounter = reloadTime;
 }
Ejemplo n.º 17
0
 public void Start()
 {
     audios = GetComponents<AudioSource>();
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }