示例#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 ();
 }
示例#3
0
 public void Start()
 {
     this.euphoriaValue      = 0f;
     this.euphoriaController = getPlayer().GetComponent <EuphoriaController>();
     PrepareEuphoriaBar();
     RefreshEuphoriaBar();
 }
示例#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;
 }
 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;
 }
示例#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;
 }
示例#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");
        }
    }
示例#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");
        }
    }
示例#9
0
 void Awake()
 {
     spriteR         = GetComponent <SpriteRenderer>();
     euphoriaC       = GetComponentInParent <EuphoriaController>();
     playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
 }
示例#10
0
 public void Start()
 {
     StartCoroutine("Spawn");
     playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }
示例#11
0
 public void Start()
 {
     audios             = GetComponents <AudioSource>();
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
示例#12
0
 public void Start()
 {
     StartCoroutine("Spawn");
     playerEuphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
示例#13
0
 void Awake()
 {
     spriteR = GetComponent<SpriteRenderer>();
     euphoriaC = GetComponentInParent<EuphoriaController>();
     playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>();
 }
示例#14
0
 public void Start()
 {
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent <EuphoriaController>();
 }
示例#15
0
 public void Start()
 {
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }
示例#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;
 }
示例#17
0
 public void Start()
 {
     audios = GetComponents<AudioSource>();
     euphoriaController = GameObject.FindGameObjectWithTag("Player").GetComponent<EuphoriaController>();
 }