private void Start()
    {
        scInfo = GetComponent <SpaceCraftInfo> ();
        sco    = GetComponent <SpaceCraftOrbit> ();

        spaceCraftList.Add(this);
    }
	private void Start ()
	{
		scInfo = GetComponent<SpaceCraftInfo> ();
		sco = GetComponent<SpaceCraftOrbit> ();

		spaceCraftList.Add (this);
	}
	protected virtual void Start ()
	{
		customSkin = Resources.Load ("GUISkin") as GUISkin;

		allSpaceCrafts = SpaceCraft.spaceCraftList;
		AdaptiveLeapfrog = GetComponent<SpaceCraftOrbit> ();
		spaceCraft = GetComponent<SpaceCraft> ();
	}
Exemplo n.º 4
0
    protected virtual void Start()
    {
        customSkin = Resources.Load("GUISkin") as GUISkin;

        allSpaceCrafts   = SpaceCraft.spaceCraftList;
        AdaptiveLeapfrog = GetComponent <SpaceCraftOrbit> ();
        spaceCraft       = GetComponent <SpaceCraft> ();
    }
Exemplo n.º 5
0
    void Start()
    {
        sco = transform.parent.GetComponent <SpaceCraftOrbit> ();
        sc  = transform.parent.GetComponent <SpaceCraft> ();

        gameObject.AddComponent <MeshFilter> ();

        arrowMat = new Material(Shader.Find("Unlit/Transparent"));
        arrowMat.SetTexture("_MainTex", Resources.Load("Textures/Arrow") as Texture);

        GetComponent <MeshFilter> ().mesh = BillBoardMesh(width, length);
        GetComponent <MeshFilter> ().mesh.Optimize();

        GetComponent <Renderer> ().material = arrowMat;
    }
Exemplo n.º 6
0
	void Start ()
	{
		sco = transform.parent.GetComponent<SpaceCraftOrbit> ();
		sc = transform.parent.GetComponent<SpaceCraft> ();

		gameObject.AddComponent<MeshFilter> ();

		arrowMat = new Material (Shader.Find ("Unlit/Transparent"));
		arrowMat.SetTexture ("_MainTex", Resources.Load ("Textures/Arrow") as Texture);

		GetComponent<MeshFilter> ().mesh = BillBoardMesh (width, length);
		GetComponent<MeshFilter> ().mesh.Optimize ();

		GetComponent<Renderer> ().material = arrowMat;

	}