示例#1
0
 private void Start()
 {
     bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
     psychokinesis          = GameObject.Find("Player").GetComponent <Psychokinesis>();
     membraneCreator        = GameObject.Find("Player").GetComponent <MembraneCreator>();
     freezer = GameObject.Find("Player").GetComponent <Freezer>();
     playerImageController = GameObject.Find("Player").GetComponent <PlayerImageController>();
     panel_SuperPower      = GameObject.Find("Panel_SuperPower").GetComponent <SuperPowerPanelController>();
 }
示例#2
0
    }                                        //물병이 선택되었음을 알리는 변수


    private void Start()
    {
        membraneCreator      = GameObject.Find("Player").GetComponent <MembraneCreator>();
        freezer              = GameObject.Find("Player").GetComponent <Freezer>();
        psychokinesis        = GameObject.Find("Player").GetComponent <Psychokinesis>();
        bottle               = GameObject.FindWithTag("isActBottle");
        bottleController     = bottle.GetComponent <BottleController>();
        bottleSkillOperation = bottle.GetComponent <BottleSkillOperation>();
        bottleSelected       = true;
    }
示例#3
0
 void Start()
 {
     bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
     bottleGenerator        = GameObject.Find("BottleManager").GetComponent <BottleGenerator>();
     padStrength            = GameObject.Find("Pad_Strength").GetComponent <PadStrength>();
     bottleController       = GameObject.FindWithTag("isActBottle").GetComponent <BottleController>(); //NEW: 처음에 시작할 때 태그로 찾아줘야 함
     thisBottleCollision    = gameObject.GetComponent <BottleCollision>();
     usefullOperation       = GameObject.Find("GameResource").GetComponent <UsefullOperation>();
     redAura                = transform.Find("RedAura").gameObject;
     freezeRange            = transform.Find("FreezeRange").gameObject;
     screenEffectController = GameObject.Find("Main Camera").GetComponent <ScreenEffectController>();
     psychokinesis          = GameObject.Find("Player").GetComponent <Psychokinesis>();
     bottleChain.Add(thisBottleCollision); //체인과 같이 연속적으로 이어진 물병들의 리스트에는 자신도 포함한다
 }
示例#4
0
    }                                     //염력을 사용할 수 있는 시간

    void Start()
    {
        bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
        playerImageController  = GameObject.Find("Player").GetComponent <PlayerImageController>();
        psychokinesis          = GameObject.Find("Player").GetComponent <Psychokinesis>();
        mainCamera             = Camera.main;
        colorCamera            = GameObject.Find("Color Camera").gameObject;
        blurEffect             = GameObject.Find("Main Camera").GetComponent <RadialBlurImageEffect>();
        shadowEffect           = GameObject.Find("Main Camera").GetComponent <ShadowThresholdCustomEffect>();
        Panel_SuperPower       = GameObject.Find("Panel_SuperPower").GetComponent <SuperPowerPanelController>();
        usefullOperation       = GameObject.Find("GameResource").GetComponent <UsefullOperation>();
        height          = 2 * Camera.main.orthographicSize;
        width           = height * Camera.main.aspect;
        blurTime        = 1;
        screenEffectNum = 1;
        psychoTime      = 0.4f;
    }
示例#5
0
    public Sprite[] skillButtonSprite; // skill버튼 스프라이트 배열

// Start is called before the first frame update
    void Start()
    {
        tensionGaugeBar          = GameObject.Find("Image_TensionGaugeBar");
        panel_SuperPower         = GameObject.Find("Panel_SuperPower");
        membranes                = GameObject.Find("Membranes");
        trajectory               = GameObject.Find("Trajectory");
        button                   = GetComponent <Button>();
        playerImageController    = GameObject.Find("Player").GetComponent <PlayerImageController>();
        bottleSelectController   = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
        padStrength              = GameObject.Find("Pad_Strength").GetComponent <PadStrength>();
        padDirection             = GameObject.Find("Joystick").GetComponent <PadDirection>();
        tensionGaugeManager      = GameObject.Find("Image_TensionGaugeBar").GetComponent <TensionGaugeManager>();
        controllButtonsUIManager = GameObject.Find("UIManager").GetComponent <ControllButtonsUIManager>();
        psychokinesis            = GameObject.Find("Player").GetComponent <Psychokinesis>();
        freezer                  = GameObject.Find("Player").GetComponent <Freezer>();
        usingSkill               = false;
        skillUsed                = false;
    }