Unity-Technologies/EntityComponentSystemSamples

Conflicting Comment and Code in Tank Sample

samueldcorbin opened this issue · 0 comments

There is a major inconsistency here:

https://github.com/Unity-Technologies/EntityComponentSystemSamples/blob/master/EntitiesSamples/Assets/Tutorials/Tanks/Step%202/TurretRotationSystem.cs

The comment says:

    // It has to be added on BOTH the struct AND the OnCreate/OnDestroy/OnUpdate functions to be
    // effective.

Immediately below that...the attribute is added to the functions, but not the struct.