Пример #1
0
 protected virtual void Start()
 {
     mechanism = GetComponent <Mechanism>();
 }
Пример #2
0
 protected virtual void Initialize()
 {
     mechanism = GetComponent <Mechanism>();
 }
Пример #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="mechanism">Mechanism to drive.</param>
 /// <param name="coefficient">Coefficient of velocity.</param>
 public MechanismUnit(Mechanism mechanism, float coefficient)
 {
     this.mechanism = mechanism;
     this.coefficient = coefficient;
 }