Home > other >  The couple self-study UNITY of doubt
The couple self-study UNITY of doubt

Time:09-19

With this online tutorial to do extension spaceshooter chapters, video is finally some extension, is about how to make the enemy planes move toward the position of the machine,
Here script transform is in start (), use the tag to the transform of the unit assigned to the script, and then at the time of calculating lateral movement position, use the transform to calculate, but when the machine has been "destroyed", will be submitted to the transform is empty,

Question, is this a memory management mechanism of c #, when an object is deleted, all controls on the reference will be become null, or said, then untiy a mechanism, and the reference, reference is reference?

CodePudding user response:

Personal think,
Wrong operation, the empty can remind you in time,
More convenient and rapid positioning error,
Just like with the try - cath,
And submitted to the empty just wrong,
Will not cause breakdown of the project, it is also quite good,
  • Related