コード例 #1
0
 /// <summary>
 /// Removes a contact at the specified index.
 /// </summary>
 /// <param name="RemIndex">index to be removed.</param>
 public void RemoveContact(int RemIndex)
 {
     Thermal.RemoveAt(RemIndex);
     ThermalYear.RemoveAt(RemIndex);
     EM.RemoveAt(RemIndex);
     EMYear.RemoveAt(RemIndex);
     Active.RemoveAt(RemIndex);
     ActiveYear.RemoveAt(RemIndex);
 }
コード例 #2
0
 /// <summary>
 /// pushes a contact onto the end of the list since that is where all new contacts will be added.
 /// </summary>
 public void AddContact()
 {
     Thermal.Add(0);
     ThermalYear.Add(0);
     EM.Add(0);
     EMYear.Add(0);
     Active.Add(0);
     ActiveYear.Add(0);
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        body        = GetComponent <Rigidbody> ();
        player      = GameObject.Find("Player").GetComponent <Player> ();
        wind        = GameObject.Find("Terrain").GetComponent <WindController> ();
        thermals    = GameObject.Find("Thermal").GetComponent <Thermal>();
        gliderLines = transform.FindChild("gliderLines").gameObject;
        Reference.blowables.Add(this);

        originAngleOfAttack = angleOfAttack;
    }
コード例 #4
0
ファイル: Glider.cs プロジェクト: pontusstjerna/ParaglideX
    // Use this for initialization
    void Start()
    {
        body = GetComponent<Rigidbody> ();
        player = GameObject.Find ("Player").GetComponent<Player> ();
        wind = GameObject.Find ("Terrain").GetComponent<WindController> ();
        thermals = GameObject.Find("Thermal").GetComponent<Thermal>();
        gliderLines = transform.FindChild ("gliderLines").gameObject;
        Reference.blowables.Add (this);

        originAngleOfAttack = angleOfAttack;
    }