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,