/// Use this for initialization when the script is first accessed
 void Awake()
 {
     ///Assigns the reactorobj to this if it is null.
     if (reactorObj == null)
     {
         reactorObj = this;
     }
     else
     {
         Destroy(transform.gameObject);
     }
 }
Пример #2
0
 ///
 /// \brief Sets the reactor terminal
 ///
 /// \param [in] rt The reactor terminal
 /// \return No return value
 ///
 /// \details
 ///
 public void setTerminal(ReactorTerminal rt)
 {
     recTerm = rt;
 }