public void Execute(ref Transform3D transform3D, ref TargetMoveInfo moveInfo, ref BoidTargetTag tag) { var pos = moveInfo.GetPosition(_timer); transform3D.Forward = (pos - transform3D.Position).normalized; transform3D.Position = pos; }
private int _GetOffsetOfBoidTargetTag_Pad() { var tempObj = new BoidTargetTag(); BoidTargetTag *ptr = &tempObj; var filedPtr = &(ptr->Pad); return((int)((long)filedPtr - (long)ptr)); }