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> ();
	}
Exemple #4
0
    protected virtual void Start()
    {
        customSkin = Resources.Load("GUISkin") as GUISkin;

        allSpaceCrafts   = SpaceCraft.spaceCraftList;
        AdaptiveLeapfrog = GetComponent <SpaceCraftOrbit> ();
        spaceCraft       = GetComponent <SpaceCraft> ();
    }
    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;
    }
	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;

	}