Example #1
0
    static private Vector3 pos;                 //凹みの座標



    // Start is called before the first frame update
    void Start()
    {
        waterisover = false;//falseが初期設定

        //水面の高さを取得
        waterline = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
    }
Example #2
0
 void Start()
 {
     anim       = GetComponent <Animator>();
     waittime   = 0;
     waitFlag   = false;
     waterline  = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
     playerline = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerManager>();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     anim = GetComponent <Animator>();
     anim.SetBool("helpLand", true);
     happy     = false;
     waterline = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
     sej       = GameObject.Find("StageEndJudge").GetComponent <StageEndJudge>();
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     referencePoint = new GameObject[referencePointNum];
     for (int i = 0; i < referencePointNum; i++)
     {
         referencePoint[i] = transform.GetChild(i).gameObject;
     }
     whc = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
 }
Example #5
0
    // Start is called before the first frame update
    void Start()
    {
        whc = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
        //水面の下限を取得
        watermin = whc.GetMinHeight();

        //playerの高さを取得
        pm            = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerManager>();
        rectTransform = panel.GetComponent <RectTransform>();
    }
Example #6
0
 // Start is called before the first frame update
 void Start()
 {
     ctrl         = GameObject.Find("GameStateController").GetComponent <GameStateController>();
     gCtrl        = GameObject.Find("GeneratableIceCounter").GetComponent <GeneratableIceCounter>();
     wCtrl        = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
     player       = GameObject.FindGameObjectWithTag("Player");
     pManager     = player.GetComponent <PlayerInputManager>();
     backPosition = GameObject.Find("BackGroundBreakIce").transform.position;
     bIce         = GameObject.Find("BackGroundBreakIce").GetComponent <BreakBackGroundIce>();
 }
 private void Start()
 {
     Init();
     collisionPosition = new Vector3(0.0f, 0.0f, 0.0f);
     velocity = new Vector3(0.0f, 0.0f, 0.0f);
     dnChanger = GameObject.Find("DayNightChanger").GetComponent<DayNightChanger>();
     gameCtrl = GameObject.Find("GameStateController").GetComponent<GameStateController>();
     whc = GameObject.Find("WaterHeightController").GetComponent<WaterHeightController>();
     poseCtrl = GameObject.Find("Pose").GetComponent<PoseController>();
     oldIsDay = true;
     flowDir = FlowDir.NON;
     speed = 1.0f;
     straightAngle = new List<float>();
 }
Example #8
0
 void Start()
 {
     startPos = transform.position;
     rb       = GetComponent <Rigidbody>();
     pTest    = GetComponent <PlayerInputTest>();
     gameCtrl = GameObject.Find("GameStateController").GetComponent <GameStateController>();
     sEnd     = GameObject.FindGameObjectWithTag("Goal").GetComponent <StageEndJudge>();
     pManager = GetComponent <PlayerInputManager>();
     whc      = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
     pac      = GetComponent <PlayerAnimationController>();
     poseCtrl = GameObject.Find("Pose").GetComponent <PoseController>();
     cc       = GameObject.Find("Main Camera").GetComponent <CameraController>();
     anim     = GetComponent <Animator>();
     pc       = GameObject.Find("PenguinController").GetComponent <PenguinController>();
 }
Example #9
0
    void Start()
    {
        dnChanger     = GameObject.Find("DayNightChanger").GetComponent <DayNightChanger>();
        flowingWaters = GameObject.FindGameObjectsWithTag("FlowingWater");
        whc           = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
        fwc           = new FlowingWaterController[flowingWaters.Length];

        int count = 0;

        foreach (GameObject obj in flowingWaters)
        {
            fwc[count] = obj.GetComponent <FlowingWaterController>();
            if (fwc[count] == null)
            {
                fwc[count] = obj.GetComponent <StraightFlowController>();
            }
            count++;
        }
    }
 protected void Init()
 {
     controller = GameObject.Find("WaterHeightController").GetComponent <WaterHeightController>();
     position   = transform.position;
     poseCtrl   = GameObject.Find("Pose").GetComponent <PoseController>();
 }