Esempio n. 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>();
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
        panel_SuperPower       = GameObject.Find("Panel_SuperPower").GetComponent <SuperPowerPanelController>();
        screenEffectController = GameObject.Find("Main Camera").GetComponent <ScreenEffectController>();
        resourceManager        = GameObject.Find("GameResource").GetComponent <ResourceManager>();

        superPowerLV      = resourceManager.GetSuperPowerLV(1);
        membraneAvailable = false;
        membraneNum       = superPowerLV; //탄성막 생성자의 초능력 강화 레벨의 수치만큼 탄성막을 생성할 수 있다.
    }
Esempio n. 3
0
    }                                         //염력을 사용 가능한 지의 여부



    void Start()
    {
        bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
        panel_SuperPower       = GameObject.Find("Panel_SuperPower").GetComponent <SuperPowerPanelController>();
        screenEffectController = GameObject.Find("Main Camera").GetComponent <ScreenEffectController>();
        gameResourceValue      = GameObject.Find("GameResource").GetComponent <ResourceManager>();
        bottles = GameObject.Find("Bottles");

        superPowerLV    = gameResourceValue.GetSuperPowerLV(0);
        psychoAvailable = true;
    }
Esempio n. 4
0
    private Vector2 distance; //물병과 카메라 포지션 사이의 거리



    void Start()
    {
        membranes = GameObject.Find("Membranes");
        bottleSelectController    = GameObject.Find("BottleManager").GetComponent <BottleSelectController>();
        superPowerPanelController = GameObject.Find("Panel_SuperPower").GetComponent <SuperPowerPanelController>();
        rect_background           = backgroud.GetComponent <RectTransform>();
        screenEffectController    = Camera.main.transform.GetComponent <ScreenEffectController>();
        backgroundWidth           = rect_background.rect.width * rect_background.localScale.x;
        backgroundHeight          = rect_background.rect.height * rect_background.localScale.y;
        presentCamera             = GetComponent <Camera>();
        defaultCameraSize         = presentCamera.orthographicSize;
        hold         = false;
        membraneHold = false;
        autoMoving   = false;
        SetCameraSize();
    }
Esempio n. 5
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;
    }