Game Development Course Class# 12: Conditional Statement in C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 115

  • @FarhanAqeel
    @FarhanAqeel  4 ปีที่แล้ว +10

    Practice nahi karogay to sir k uper se nikal jaeyga :) Share this with others..
    Full series: th-cam.com/play/PLBh8phtAyHPUY9fqgs1w6aHJALJ3_fMSc.html
    Group: facebook.com/groups/FreelancingHelpOfficial
    Insta: "farhan.aqeel"

    • @yogeshpatel3797
      @yogeshpatel3797 4 ปีที่แล้ว

      I am hard working sir

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      Ap ne miss kardia wo wala part jahan me script gameobject se attach kar rha hun. wo part isi video me h

    • @shriyanssudhi4545
      @shriyanssudhi4545 3 ปีที่แล้ว

      How to code better:-
      Learn from videos, see more examples from Internet, write a new one without referring, and finally if got error, search it on Internet, review the code and finally, ask from dev community

    • @dragongamers9461
      @dragongamers9461 3 ปีที่แล้ว

      Boolean 🤣🤣🙏🙏

    • @dragongamers9461
      @dragongamers9461 3 ปีที่แล้ว

      Data type
      String
      Int
      float
      bool
      char

  • @Greenlifecheck
    @Greenlifecheck 4 ปีที่แล้ว +4

    Sir g level ka
    Course ha ....waqai
    Allah di qasmay......❤️❤️

  • @MystroVerse
    @MystroVerse 3 ปีที่แล้ว +6

    This was the best real life example to understand if else statement I ever seen. First time me hi samajh aa gaya.😍 Great Sir.. Thank you

  • @musa_aurangzeb
    @musa_aurangzeb 2 ปีที่แล้ว +1

    The way he deleivers the lecture is amazing no words for this

  • @sanaullah3036
    @sanaullah3036 4 ปีที่แล้ว +2

    Sir g ap ka smajhane ka andaaz boht umda h. boht axhe se smjh aa jata h. or m Notes bhi bana raha hu.
    Love u Sir

  • @actorsuresh9923
    @actorsuresh9923 4 ปีที่แล้ว +3

    It’s a very very very helpful and supportive videos thanks
    Allah ka sukar hai aap jese bando ko banaya jo apne next level ko apna knowledge bat rahe hai

  • @rakshindakabeeri5338
    @rakshindakabeeri5338 3 ปีที่แล้ว +2

    I copy paste a lot in coding 😂 it make life so easy , but copy paste my own codes not the Google one. I know all the basics of coding but nowadays I'm learning assembly language it really sucks. I know c and c++ so it's much similar but as I start learning through your course so just revising all the previous work and yes I'm making notes and I paused your video when you say else if and wrote the complete code but a person who doesn't know anything about coding your video can teach them alot. You are really doing a great job.🙂

  • @bilawalhaq1624
    @bilawalhaq1624 3 ปีที่แล้ว +3

    i am watching your lecture from today and its very addictive i have been watched 12 lectures in one single day and learning from it thank you for all this..

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +7

      Thankyou for the words but i'll recommend one-2 videos every day.
      here are some tips:
      - Watch a video more than one.
      - Make notes[HIGHLY IMPORTANT] to get the best out of this series.
      - Practice more than once!!!
      post the notes on the group so that others can benefit from it too

  • @AdiiGamerYt
    @AdiiGamerYt 3 ปีที่แล้ว

    Bhai ma ye series 1 saal baad dekh raha hu aur yaqeen maanain k is chz ka kuch b nai tha pta mjy
    aur apki video se sb kuch bht achy se smjh aa raha ha aur exmple bht kmaal ki dety ap big fan bhai
    ALLAH PAK LAMBI ZINDAGI DE AUR KAAMYABI DE

  • @wajahatnoor-z6r
    @wajahatnoor-z6r ปีที่แล้ว

    Being a IT student Great Content Provided by Sir Farhan Aqeel Free of Cost Appreciated sir Awesome Example....

  • @AsadAli-jt9hc
    @AsadAli-jt9hc 2 ปีที่แล้ว

    samajh aa gaya.😍 Great Sir.. Thank you

  • @gamesofficial9860
    @gamesofficial9860 2 ปีที่แล้ว +1

    it's so fun to play with this if else statement.
    thanks sir

  • @engrkhanbhai
    @engrkhanbhai 4 ปีที่แล้ว

    Farhan bhai aj to bht maza aya, wow kia explaination ti qasm se, hum ne 2 years pehly if else command parhy ty c++ me pr apka wala awla ta such me . 1st attempt me hi seek liya or bhai ko 4, 5 doodh ki dokano pe bej diya pr pir b dodh ni mila , hahaha

  • @hassantahir5810
    @hassantahir5810 2 ปีที่แล้ว

    Farhan Bhai Weldon
    Great work brother

  • @sarmadashfaq7640
    @sarmadashfaq7640 4 ปีที่แล้ว +2

    great series loving it

  • @alphagam3r933
    @alphagam3r933 3 ปีที่แล้ว

    sir bohot badhiya comedy kar di 25:21 But puri tarah se samaj aa gaya

  • @matpathiakash924
    @matpathiakash924 4 ปีที่แล้ว +1

    Very educational video bro..!! ❤️

  • @MuhammadOsamaAhmedEB_
    @MuhammadOsamaAhmedEB_ 3 ปีที่แล้ว +3

    Instead of using the start block (function), I used the update block (function). There are multiple hostages in different rooms and after finding the hostage in a room the update block (function) will run again and then it will find hostages in other rooms.
    Code:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class ifStatements : MonoBehaviour
    {
    bool hostageInRoom1 = false;
    bool hostageInRoom2 = false;
    bool hostageInRoom3 = true;
    bool hostageInRoom4 = true;
    bool hostageInRoom5 = false;
    bool hostageInRoom6 = true;

    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    if (hostageInRoom1)
    {
    Debug.Log("Hostage found in Room1!");
    hostageInRoom1 = false;
    }
    else if (hostageInRoom2)
    {
    Debug.Log("Hostage found in Room2!");
    hostageInRoom2 = false;
    }
    else if (hostageInRoom3)
    {
    Debug.Log("Hostage found in Room3!");
    hostageInRoom3 = false;
    }
    else if (hostageInRoom4)
    {
    Debug.Log("Hostage found in Room4!");
    hostageInRoom4 = false;
    }
    else if (hostageInRoom5)
    {
    Debug.Log("Hostage found in Room5!");
    hostageInRoom5 = false;
    }
    else if (hostageInRoom6)
    {
    Debug.Log("Hostage found in Room6!");
    hostageInRoom6 = false;
    }
    else
    {
    Debug.Log("No more hostages found!");
    }
    }
    }

  • @swachgamingandtech.8564
    @swachgamingandtech.8564 2 ปีที่แล้ว

    Big fan of u..sir...love from odisha

  • @Iamfinne
    @Iamfinne ปีที่แล้ว

    thanks sir you are soo great your explanation is very great

  • @muhammadfurqanaqeel2367
    @muhammadfurqanaqeel2367 ปีที่แล้ว

    Very good information thanks

  • @umerrajput7766
    @umerrajput7766 2 ปีที่แล้ว

    me ne likh rehi sath sath ap ki ek class ek br dekh k samjti phir next again ply kr k nots bana lyti

  • @husainabid7706
    @husainabid7706 4 ปีที่แล้ว +3

    Good

  • @fayazhussain5547
    @fayazhussain5547 4 ปีที่แล้ว

    Nicely explained wd smile

  • @voopoohgaming4143
    @voopoohgaming4143 2 ปีที่แล้ว

    Happy teachers day sir love from India 🇮🇳

  • @pranjulagarwal4276
    @pranjulagarwal4276 2 ปีที่แล้ว +1

    Sir, code run nhi ho raha h vs code me kafi error aa rahe h jo ki samajh nhi aa rahe h.
    Please make a video to set up unity + vs code

  • @islamiclarenerscafetv1972
    @islamiclarenerscafetv1972 2 ปีที่แล้ว

    Very very helpful 👍☺️

  • @Tech_aale007
    @Tech_aale007 7 หลายเดือนก่อน

    Hello bhaiya.....
    Blender me koi bhi buildings ko bana kar or animations ko unity me laga sakte hai kya.... Chal jae ga kya ....

  • @twosidefact
    @twosidefact 3 ปีที่แล้ว

    Thanks sir , for clearing my doubts

  • @playbooz
    @playbooz 3 ปีที่แล้ว

    kya oparetor 2 bar dena parega like "==" single dene se error ayga kya ?

  • @WajidAli-nk4lx
    @WajidAli-nk4lx 4 ปีที่แล้ว +2

    Dude love love love

  • @shriyanssudhi4545
    @shriyanssudhi4545 3 ปีที่แล้ว

    Python code for what you told😅🤣😎
    Although, thanks for nice videos.
    pumpIsOpen=False
    def fill():
    if pumpIsOpen==True:
    fillPetrol()
    else:
    print('Mere developer bhai, abhi pump bund hai, isliye bike mein petrol khatma ho gaya
    LOL')
    Output
    Mere developer bhai, abhi pump bund hai, isliye bike mein petrol khatma ho gaya
    LOL

  • @helplineudvash8112
    @helplineudvash8112 3 ปีที่แล้ว

    Awesome tutorial

  • @FaizanaliReal
    @FaizanaliReal ปีที่แล้ว

    Sir i see an error when i write debug.log command unity don't accept it please tell me the solution ????

  • @arbazjaved8664
    @arbazjaved8664 2 ปีที่แล้ว

    Sir g aik jawab dy do bs hum ne aik button bnaya h os pe hum ne lock lgaya h r wo lock tb open ho jb hum ose purchase krn m ne purchase button bhe bnaya h but jb m purchase krta ho tow wo lock jo button pe h wo open nahi hta please es k bare mn thora smjha dain

  • @footballhub9049
    @footballhub9049 ปีที่แล้ว

    sir mene same to same code copy kia h lekin debug aik tou blue nahi hua or compiler error deraha h jb play krta hun tou
    or pta nahi aik collabs ka masla bhi araha ye error show horaha baar baar
    [Collab] Collab service is deprecated and has been replaced with PlasticSCM'

  • @theuser4002
    @theuser4002 2 ปีที่แล้ว

    very very thankful

  • @arbazjaved8664
    @arbazjaved8664 2 ปีที่แล้ว

    Mtlab basic sa code h os pe bhe if else statement lagni h but i can't understand how to do that code and how to implement my logic on that code

  • @TraderAjayVlogs
    @TraderAjayVlogs 4 ปีที่แล้ว +2

    Sir Mera 'if' condition run ho rha lekin 'else if' lgane par error de rha hai.
    Sir please replay.

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      Post a screenshot with error description on the facebook group. link is in description

  • @interesting_Tales462
    @interesting_Tales462 3 ปีที่แล้ว

    bhais are op battamiez for doing work

  • @muhammadsalman2975
    @muhammadsalman2975 4 ปีที่แล้ว

    // you are very smilee teacher

  • @muhammadtahir2387
    @muhammadtahir2387 ปีที่แล้ว

    visual studio kia kam karta ha ? plz explian

    • @FarhanAqeel
      @FarhanAqeel  ปีที่แล้ว

      Is playlist ki second video dobara dekhen. Notes lazmi banaen

  • @muhammadtahir2387
    @muhammadtahir2387 ปีที่แล้ว

    sir mara name colpase pa nai chala ?

  • @alifarooq9023
    @alifarooq9023 2 ปีที่แล้ว

    A boolean should be used for a condition in an if statement.

  • @asadkhanek687
    @asadkhanek687 4 ปีที่แล้ว +2

    great video but i think you make this for non computer students or for 12 year student.

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      Yes. the whole series is suitable for everyone[even school kids].

  • @himanshukumarm.eroll-o6420
    @himanshukumarm.eroll-o6420 3 ปีที่แล้ว

    Sir mai script likhne ke liye kon sa app download kru. Kyuki ek note pad pr krta hu to script run nahi hota. Please help.

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +1

      classes skip na karen. Game Engine vs IDE video dekhen. installation wali video dekhen. kafi concepts miss hojaengay

    • @himanshukumarm.eroll-o6420
      @himanshukumarm.eroll-o6420 3 ปีที่แล้ว

      @@FarhanAqeel sir ek bhi skip nahi kiye hai blki dodo baar dekhe hai sbko.phle pura dekhte hai phir use krte hai nahi hota tb dekh kr use krte hai.

  • @TYCuber
    @TYCuber 4 ปีที่แล้ว +1

    I am having problems with intellisense in vscode pls help

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว

      download visual studio from unity hub.

    • @TYCuber
      @TYCuber 4 ปีที่แล้ว

      @@FarhanAqeel how to do that?

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว

      @@TYCuber check the video in which i've installed unity editor. you'll find the way in that video.

    • @TYCuber
      @TYCuber 4 ปีที่แล้ว

      @@FarhanAqeel ok thank you sir

  • @shivamgupta8917
    @shivamgupta8917 2 ปีที่แล้ว

    degub.log nahi smjh aya sir

  • @ZainShehzad-j1j
    @ZainShehzad-j1j หลายเดือนก่อน

    poori sirees mein bhai ko dhi lane bheja hua hai😂😂

  • @yahyaopgaming4108
    @yahyaopgaming4108 3 ปีที่แล้ว

    Sir thora mushkil ha lkin ho jayga inshaAllah Allah Apko salamat rakhy Ameen

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +1

      yehi dheetpan chahiay.. jahan b phasen thora dimagh lagaen, agar phir b samajh na aey to group me post karden me help krdunga. group link is in description

    • @yahyaopgaming4108
      @yahyaopgaming4108 3 ปีที่แล้ว

      @@FarhanAqeel thanks sir inshaAllah😅

  • @shazmahussain3395
    @shazmahussain3395 4 ปีที่แล้ว

    is this course completed sir after your 33 video? or there are more to come?

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว

      i upload 2 new videos every week. you can join the facebook group for more schedule updates

  • @MuhammadOsamaAhmedEB_
    @MuhammadOsamaAhmedEB_ 3 ปีที่แล้ว

    At 11:26 when u use Light Mode in Unity😄

  • @hasni0079
    @hasni0079 2 ปีที่แล้ว

    Farhan bhai ya course complete ha plz tell me

    • @FarhanAqeel
      @FarhanAqeel  2 ปีที่แล้ว

      answer: th-cam.com/video/iLwvFBLbols/w-d-xo.html

    • @hasni0079
      @hasni0079 2 ปีที่แล้ว

      @@FarhanAqeel ok thankew so much farhan bhai❤

  • @Ahmaddaniyal-s9t
    @Ahmaddaniyal-s9t 2 หลายเดือนก่อน

    bhai de pen di.....................ah

  • @ReflexSus
    @ReflexSus 3 ปีที่แล้ว

    Ap Karachi Pakistan se hain?

  • @ETechByAbbas
    @ETechByAbbas 2 ปีที่แล้ว

    Sir Software Engineer kr li.. acha acha PHD teachers sa prh lia.. Yakeen kro jis trha sa ap explain kr rha kisi na nhe kia.. Afsoos is bat k keh bht late dekh raha apki series.

  • @rajatmaurya3000
    @rajatmaurya3000 3 ปีที่แล้ว +1

    Sir India me 24 hours petrol pump open rhta hai

    • @xelate2249
      @xelate2249 3 ปีที่แล้ว

      Ither Lahore main bhi, yeh shaid karachi ka masla

    • @shoaibakhtar2262
      @shoaibakhtar2262 3 ปีที่แล้ว

      India mn petrol use hota hai?

    • @rajatmaurya3000
      @rajatmaurya3000 3 ปีที่แล้ว

      @@shoaibakhtar2262 ha

  • @cuberspeed4971
    @cuberspeed4971 2 ปีที่แล้ว

    To The people who know a little bit of js, c, python or could easily understand it

  • @Mehendi.by.laibaa
    @Mehendi.by.laibaa 2 ปีที่แล้ว +1

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class conditionalstatements : MonoBehaviour
    {
    /*
    (if),(else),(else if).These are known as conditional statements
    These are used to put a condition like if something is available bring it or else i am okay to go with
    anything is available
    */
    public int age = 10;
    /*
    I have created and given access modifier public so we can change the value in inspector and have fun with it
    because as we changes the value the log message will changes
    */
    // Start is called before the first frame update
    void Start()
    {
    if(age==15)
    {
    Debug.Log("you are a teenager");
    }
    else if(age==20)
    {
    Debug.Log("You are an adult");
    }
    else if(age==10)
    {
    Debug.Log("You are a child");
    }
    else
    {
    Debug.Log("You are mature");
    }
    }
    // Update is called once per frame
    void Update()
    {

    }
    }

  • @geminigaming7769
    @geminigaming7769 3 ปีที่แล้ว

    Hehehe ex ki khowari krwadi :p

  • @surajpandey150
    @surajpandey150 4 ปีที่แล้ว

    Hello sir...I need some help. Sir I am trained in graphic designing and video editing, but I also have a huge interest in game development and want to learn it from the beginning. So want to ask that should I learn this game development or continue to increase my skills in graphic and motion designs? And also am bit confused that learning game development will help me make money or not?

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +1

      Hi. Answers:
      1) Depending upon the type of skill you have related to graphics or motion design you can go for either game development or Graphics.. Example: if you don't have a good portfolio in design but have interest in game development then i'll recommend you to try game development. try it from the very first video on this playlist. it will answer your second question as well within the first 30 seconds :)

    • @surajpandey150
      @surajpandey150 4 ปีที่แล้ว +2

      Got my answers sir. Thanks a lot for your help :-)

    • @hasni0079
      @hasni0079 2 ปีที่แล้ว

      Farhan bhai ya complete course ha plzz tell me??

  • @playtime3d
    @playtime3d ปีที่แล้ว

    #12

  • @Selectrify
    @Selectrify 4 ปีที่แล้ว +1

    ❤❤😘

  • @hassaanraheem5644
    @hassaanraheem5644 4 ปีที่แล้ว +2

    💥If/else
    Example Of Game development Playlist :
    private new_video = true ;
    void start()
    {
    if (new_video == true){
    debug.log("playlist updated) ;
    }
    else {
    debug.log("playlist not updated yet");
    }
    }
    💥If/else if/else
    Example :
    if (day=="Tuesday") {
    debug.log("video uploaded");
    }
    else if (day=="Friday") {
    debug.log("video uploaded")
    }
    else
    {
    debug.log("do practice");
    }

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +1

      perfect example.. Just one minor improvement.
      I always recommend having meaningful variable names. since we are trying to check whether the new video is published or not, it would be better if we name the variable as "new_Video_Published" instead of "new_video".
      good work!

    • @hassaanraheem5644
      @hassaanraheem5644 4 ปีที่แล้ว

      @@FarhanAqeel thanks Farhan Bhai to point out this , now I remember it.

  • @Marjan_Ali
    @Marjan_Ali 3 ปีที่แล้ว

    private bool firstDoorIsOpened = false;
    private bool secondDoorIsOpened = false;
    private bool thirdDoorIsOpened = true;
    // Start is called before the first frame update
    void Start()
    {
    if (firstDoorIsOpened == true)
    {
    Debug.Log("First door is opened");
    }
    else if (secondDoorIsOpened == true)
    {
    Debug.Log("Second door is opened");
    }

    else if (thirdDoorIsOpened == true)
    {
    Debug.Log("Third door is opened");
    }
    else { Debug.Log("All doors are closed");
    }

    }

  • @bilalsheikh3988
    @bilalsheikh3988 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Ifstatement : MonoBehaviour {
    private bool blackShirtIsAvailable = false;
    private bool blueShirtIsAvailable = true;
    // Use this for initialization
    void Start () {

    if (blackShirtIsAvailable == true) {
    Debug.Log ("yes it's available");
    } else if (blueShirtIsAvailable == true) {
    Debug.Log ("not black but blue is available");
    }
    else {
    Debug.Log ("no it's not available");
    }
    }

    // Update is called once per frame
    void Update () {

    }
    }

  • @anime_web8303
    @anime_web8303 2 ปีที่แล้ว

    If the petrol pump is open then fuel the motorcycle else tell me about it

  • @asanimators8147
    @asanimators8147 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class conditionalstatements : MonoBehaviour
    {
    void start(){
    bool maths physics = true;
    bool maths = true;
    bool physics = true;
    if(maths,physics == true){
    print("you are awarded with 45rupee");
    }
    else{
    print("notthing");
    }
    if(maths == true){
    print("you awarded with 15rupee");
    }
    else{
    print("notthing");
    }
    if(physics == true){
    print("you awarded with 15rupee");
    }
    else{
    print("notthing");
    }
    }
    void Update()
    {
    }
    }

  • @Giftbloomae
    @Giftbloomae 2 ปีที่แล้ว

    farhan sir choty bhai per reham kar itna chakar lagwa rahe ho petrol pumps ka

  • @good114
    @good114 ปีที่แล้ว

  • @ahsanstatus4672
    @ahsanstatus4672 3 ปีที่แล้ว

    mera program nahi chal raha sb thk ha phir bhi

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +2

      paste a screenshot in the group. link is in description

  • @hamaaritech8714
    @hamaaritech8714 3 ปีที่แล้ว

    sir ma khud he chota bhai ho ghar ma aj ma apni khwari karaonga

  • @qaiseryounes8292
    @qaiseryounes8292 ปีที่แล้ว

    Sir mera chota bhai nahi hy ab mai kia kru.....?😂

  • @teamcollegiates1747
    @teamcollegiates1747 2 ปีที่แล้ว +1

    Bhai manta hee nahi

  • @hamxakhan037
    @hamxakhan037 4 ปีที่แล้ว +1

    Jisko janty ho us k name k variable bna k khuwari krwao.😂😂😂😂😂

    • @hamxakhan037
      @hamxakhan037 4 ปีที่แล้ว

      @Tech Boy Come on the messenger.

  • @alifarooq9023
    @alifarooq9023 2 ปีที่แล้ว

    if I go to the bathroom then I have to flush the toilet.

  • @waqarahmed9236
    @waqarahmed9236 2 ปีที่แล้ว

    Mn tu frhan bhai ap ko oil lene bhej rha hn

  • @gboy37752
    @gboy37752 2 ปีที่แล้ว

    If you know english then write else don't write