Ejemplo n.º 1
0
    public void Start()
    {
        Simulation = GameObject.Find("Simulation Event Handler").GetComponent <SimulationMethods>();

        calculatedCentre    = GetCentre;
        calculatedDirection = (transform.position - GetCentre);
        SetIntendedDistance = (transform.position - GetCentre).magnitude;

        workspace = GameObject.Find("Workspace");
        Simulation.ActivateViewMode();
        Simulation.WireInstantiator.SetWireColor(Simulation.WireInstantiator.redWireMat);
        currentSimulationMode = Simulation.currentSimulationMode;
        ZoomToWorkspace();
    }
Ejemplo n.º 2
0
 private void Start()
 {
     Simulation = GameObject.Find("Simulation Event Handler").GetComponent <SimulationMethods>();
 }