Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (DietBtn != null)
            {
                DietBtn.Dispose();
                DietBtn = null;
            }

            if (AttackBtn != null)
            {
                AttackBtn.Dispose();
                AttackBtn = null;
            }

            if (CruiseBtn != null)
            {
                CruiseBtn.Dispose();
                CruiseBtn = null;
            }

            if (ConsBtn != null)
            {
                ConsBtn.Dispose();
                ConsBtn = null;
            }

            if (StabBtn != null)
            {
                StabBtn.Dispose();
                StabBtn = null;
            }
        }
Ejemplo n.º 2
0
 private void InitControlElements()
 {
     Generation.Visible = false;
     MsgLabel.Visible   = true;
     Message.Show();
     AttackBtn.Show();
 }
 void Start()
 {
     BossRef = Instantiate(BossModel, Camera.main.transform.position + Camera.main.transform.forward * 15, Quaternion.identity);
     BossRef.transform.LookAt(Camera.main.transform);
     AttackBtn.SetActive(false);
     StartCoroutine(HideInfo());
 }
    IEnumerator HideInfo()
    {
        yield return(new WaitForSeconds(6));

        BossRef.transform.GetChild(0).gameObject.SetActive(false);
        AttackBtn.SetActive(true);
    }
Ejemplo n.º 5
0
        public Combat()
        {
            InitializeComponent();

            this.FormBorderStyle     = FormBorderStyle.None;
            this.WindowState         = FormWindowState.Maximized;
            tableLayoutPanel2.Parent = BackgroundPB;

            button1.Enabled = false;
            button1.Visible = false;

            timer1.Enabled  = true;
            timer1.Tick    += timer1_Tick;
            timer1.Interval = 50;

            timer2.Enabled  = true;
            timer2.Tick    += timer2_Tick;
            timer2.Interval = 50;

            timer1.Stop();
            timer2.Stop();

            PlayerHPCurrentLabel.Scale(2);
            PlayerHPSlashLabel.Scale(2);
            PlayerHPMaxLabel.Scale(2);
            PlayerHPText.Scale(2);
            PlayerMPCurrentLabel.Scale(2);
            PlayerMPSlashLabel.Scale(2);
            PlayerMPMaxLabel.Scale(2);
            PlayerMPText.Scale(2);

            EnemyHPCurrentLabel.Scale(2);
            EnemyHPSlashLabel.Scale(2);
            EnemyHPMaxLabel.Scale(2);
            EnemyHPText.Scale(2);
            EnemyMPCurrentLabel.Scale(2);
            EnemyMPSlashLabel.Scale(2);
            EnemyMPMaxLabel.Scale(2);
            EnemyMPText.Scale(2);

            AttackBtn.Scale(2);
            SpecialSkillBtn.Scale(2);
            BlockBtn.Scale(2);
            ItemsBtn.Scale(2);
            button1.Scale(2);

            Delay.Enabled = true;
            Delay.Stop();

            if (Sound.SongPlayer.settings.volume > 0)
            {
                timer1.Start();
            }

            CombatSoundPlayer.settings.volume = 0;
            CombatPlay(Sound.Song_battle);

            timer2.Start();
        }
Ejemplo n.º 6
0
    public static bool nowAttack = false; // true(attack중)는 캐릭터 플립 제한

    // Start is called before the first frame update
    void Start()
    {
        handRenderer = GetComponent <SpriteRenderer>();
        // player = GameObject.Find("Player");
        player         = GameObject.FindGameObjectWithTag("Player");
        playerRenderer = player.GetComponent <SpriteRenderer>();
        animator       = GetComponent <Animator>();
        attackBound    = GetComponent <BoxCollider2D>();
        attackBtn      = GameObject.Find("UIBtn").transform.Find("AttackBtn").gameObject.GetComponent <AttackBtn>();

        _moveVector = Vector3.zero;
    }