Ejemplo n.º 1
0
    void Start()
    {
        _gameController    = GameObject.Find("GameManager").GetComponent <GameController>();
        _coordinateManager = GameObject.Find("GameManager").GetComponent <CoordinateManager>();

        _uiView = this.GetComponent <G99_UIView>();
    }
Ejemplo n.º 2
0
 private void Start()
 {
     cubeMesh    = gameObject.GetComponent <MeshFilter>().mesh;
     trashBin    = GameObject.Find("BottomPlate").GetComponent <TrashBin>();
     gearScript  = GameObject.Find("BottomPlate").GetComponent <GearPlacer>();
     coordScript = GameObject.Find("BottomPlate").GetComponent <CoordinateManager>();
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        uIAnimator = gameObject.AddComponent <UIAnimator>();
        uIAnimator.SetUp(2f);
        uIAnimator.canvas.alpha = 0f;

        gearScript  = GameObject.Find("BottomPlate").GetComponent <GearPlacer>();
        coordScript = GameObject.Find("BottomPlate").GetComponent <CoordinateManager>();
        gearTypes   = gearScript.gearTypes;
    }
Ejemplo n.º 4
0
    private void СonnectionsWithNeighbors()
    {
        var effector = new CoordinateManager();

        var neighbors = effector.GetNeighbors(_index);

        foreach (var neighbor in neighbors)
        {
            neighborsCor.Add(neighbor.Index);


            GraphVertex.AddEdge(neighbor.GraphVertex, neighbor.State.PassageDifficulty.Value);
        }
    }
Ejemplo n.º 5
0
    void Start()
    {
        _gameController       = GameObject.Find("GameManager").GetComponent <GameController>();
        _coordinateManager    = GameObject.Find("GameManager").GetComponent <CoordinateManager>();
        gesslerShootPerformer = G20_ComponentUtility.FindComponentOnScene <G20_GesslerShootPerformer>();

        titleCanvas.SetActive(true);
        G20_BGMManager.GetInstance().Play(G20_BGMType.TITLE);
        paramCanvas.SetActive(false);

        //Playerが死んだときにGameOverに移行させるためにアクションを追加
        playerObj.deathActions += (x, y) => GameFailed();

        RenderSettings.ambientLight = startAmbient;
        RenderSettings.fogColor     = startFogColor;
        RenderSettings.fogDensity   = startFogDensity;
    }
Ejemplo n.º 6
0
 /// <summary>
 /// Applies any updates to the window size, adjusting the coordinate manager accordingly.
 /// </summary>
 protected void ApplyWindowSize()
 {
     Graphics.ApplyChanges();
     CoordinateManager.SetSize(Width, Height);
 }
Ejemplo n.º 7
0
 private void Start()
 {
     CM = GameObject.Find("GameManager").GetComponent <CoordinateManager>();
 }
Ejemplo n.º 8
0
 void Awake()
 {
     instance = this;
 }