void Start() { //오브젝트 받아오기 rb = GetComponent <Rigidbody2D>(); bottleGenerator = GameObject.Find("BottleManager").GetComponent <BottleGenerator>(); player = GameObject.Find("Player"); bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>(); playerImageController = player.GetComponent <PlayerImageController>(); padStrength = GameObject.Find("Pad_Strength").GetComponent <PadStrength>(); padDirection = GameObject.Find("Joystick").GetComponent <PadDirection>(); trajectoryLine = GameObject.Find("Trajectory").GetComponent <TrajectoryLine>(); transparent = GetComponent <SpriteRenderer>(); // 물병의 스프라이트 렌더러(투명도) tensionGaugeManager = GameObject.Find("Image_TensionGaugeBar").GetComponent <TensionGaugeManager>(); controllButtonsUIManager = GameObject.Find("UIManager").GetComponent <ControllButtonsUIManager>(); usefullOperation = GameObject.Find("GameResource").GetComponent <UsefullOperation>(); screenEffectController = GameObject.Find("Main Camera").GetComponent <ScreenEffectController>();; //값 초기화 rb.gravityScale = 0; transform.position = playerImageController.getBottlePosition(); isSuperPowerAvailabe = false; //물병에 초능력을 적용할 수 있는지의 여부 isStanding = false; onFloor = false; standingBySkill = false; rotateSpeed = 0.8f; //회전속도 delta = 0; destroyDelay = 1; standingDelay = 2; padStrengthTouched = false; padDirectionTouched = false; tensionGaugeUp = true; isDestroying = false; standBottle = false; }
private int newFreezedCount; //새롭게 빙결된 구조물의 갯수 private void Awake() { tensionGaugeManager = GameObject.Find("Image_TensionGaugeBar").GetComponent <TensionGaugeManager>(); gameResourceValue = GameObject.Find("GameResource").GetComponent <ResourceManager>(); superPowerLV = gameResourceValue.GetSuperPowerLV(2); newFreezedCount = 0; //초기 범위 이미지 반지름 설정 transform.localScale = new Vector3(1.075f * superPowerLV, superPowerLV, 1); }
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; }
public void Start() { count = GameObject.Find("Pad_Strength").GetComponent <PadStrength>().count; structure = transform.parent.GetComponent <Structure>(); bottleSelectController = GameObject.Find("BottleManager").GetComponent <BottleSelectController>(); bottles = GameObject.Find("Bottles"); padStrength = GameObject.Find("Pad_Strength").GetComponent <PadStrength>(); tensionGaugeManager = GameObject.Find("Image_TensionGaugeBar").GetComponent <TensionGaugeManager>(); usefullOperation = GameObject.Find("GameResource").GetComponent <UsefullOperation>(); conditionFullfilled = false; shouldBeFreezed = false; inCollidernNum = 0; intervalTime = 0; operatingTime = 0; actBool = true; enoughStackBool = true; }